A more reliable test, check against expected keys, rather than received
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 21 Feb 2015 21:35:30 +0000 (15:35 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 21 Feb 2015 21:35:30 +0000 (15:35 -0600)
If we check against expected, if we got more than we expected, that's
no problem :)

This commit sponsored by Adan Bolte.  Thank you!

mediagoblin/tests/test_exif.py

index c693ed9b6b304dfe02b010f3700861098d6e3234..e3869ec8ee6137a7e193f871b9b6c178b1663200 100644 (file)
@@ -370,8 +370,8 @@ def test_exif_extraction():
                            'tag': 283,
                            'values': [[300, 1]]}})
 
-    for k, v in useful.items():
-        assert v == expected[k]
+    for key in expected.keys():
+        assert useful[key] == expected[key]
 
 
 def test_exif_image_orientation():