A more reliable test, check against expected keys, rather than received

If we check against expected, if we got more than we expected, that's
no problem :)

This commit sponsored by Adan Bolte.  Thank you!
This commit is contained in:
Christopher Allan Webber 2015-02-21 15:35:30 -06:00
parent cb718ba06f
commit 207f0f95a9

View 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():