aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_exif.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2015-02-21 15:35:30 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2015-02-21 15:35:30 -0600
commit207f0f95a9599118927455650e0cbeb933a8aecc (patch)
tree35bafccf69be4f9cde07b642857dc170dfb59457 /mediagoblin/tests/test_exif.py
parentcb718ba06f4977012952e5f6baae876819811233 (diff)
downloadmediagoblin-207f0f95a9599118927455650e0cbeb933a8aecc.tar.lz
mediagoblin-207f0f95a9599118927455650e0cbeb933a8aecc.tar.xz
mediagoblin-207f0f95a9599118927455650e0cbeb933a8aecc.zip
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!
Diffstat (limited to 'mediagoblin/tests/test_exif.py')
-rw-r--r--mediagoblin/tests/test_exif.py4
1 files 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():