Ensure uploaded filename is correct

This commit is contained in:
sneakypete81 2013-12-19 18:49:25 +00:00
parent f497adcabd
commit 7e889ee3b0

View file

@ -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):