From: Christopher Allan Webber Date: Sat, 21 Feb 2015 21:35:30 +0000 (-0600) Subject: A more reliable test, check against expected keys, rather than received X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=207f0f95a9599118927455650e0cbeb933a8aecc;p=mediagoblin.git 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! --- diff --git a/mediagoblin/tests/test_exif.py b/mediagoblin/tests/test_exif.py index c693ed9b..e3869ec8 100644 --- a/mediagoblin/tests/test_exif.py +++ b/mediagoblin/tests/test_exif.py @@ -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():