From 7e889ee3b0e30549d473fc39c25cfb84a285e34c Mon Sep 17 00:00:00 2001 From: sneakypete81 Date: Thu, 19 Dec 2013 18:49:25 +0000 Subject: [PATCH] Ensure uploaded filename is correct --- tests/unit/test_photos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_photos.py b/tests/unit/test_photos.py index 9b10a77..d11f15d 100644 --- a/tests/unit/test_photos.py +++ b/tests/unit/test_photos.py @@ -419,7 +419,7 @@ class TestPhotoUpload(TestPhotos): files = mock_post.call_args[1]["files"] self.assertEqual(endpoint, ("/photo/upload.json",)) self.assertEqual(title, "Test") - self.assertIn("photo", files) + self.assertEqual(files["photo"].name, self.test_file) self.assertEqual(result.get_fields(), self.test_photos_dict[0]) class TestPhotoUploadEncoded(TestPhotos):