diff options
author | mnandri <mnandri@eunglick.corporate.thoughtworks.com> | 2015-12-16 18:26:31 +0100 |
---|---|---|
committer | mnandri <mnandri@eunglick.corporate.thoughtworks.com> | 2015-12-18 11:22:34 +0100 |
commit | 39fa6e68fc2afaafc0e8440d212b464d2e20c326 (patch) | |
tree | 03d090f7178a2d93a9c33cd072b0ff33fd9bd545 /service/test/integration/test_retrieve_attachment.py | |
parent | 338498cef1cd4f2b9ae49bc54bd496de0e5472a0 (diff) |
fixing unit test -- again WIP
Diffstat (limited to 'service/test/integration/test_retrieve_attachment.py')
-rw-r--r-- | service/test/integration/test_retrieve_attachment.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/test/integration/test_retrieve_attachment.py b/service/test/integration/test_retrieve_attachment.py index ca11a14d..b6010666 100644 --- a/service/test/integration/test_retrieve_attachment.py +++ b/service/test/integration/test_retrieve_attachment.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. import base64 +import json from email import encoders from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart @@ -66,3 +67,4 @@ class RetrieveAttachmentTest(SoledadTestBase): self.assertEqual(201, req.code) self.assertEqual('/attachment/B5B4ED80AC3B894523D72E375DACAA2FC6606C18EDF680FE95903086C8B5E14A', req.headers['Location']) + self.assertEqual({'attachment_id': 'B5B4ED80AC3B894523D72E375DACAA2FC6606C18EDF680FE95903086C8B5E14A'}, json.loads(req.written[0])) |