From 207f0f95a9599118927455650e0cbeb933a8aecc Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 21 Feb 2015 15:35:30 -0600 Subject: [PATCH] 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! --- mediagoblin/tests/test_exif.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(): -- 2.25.1