aboutsummaryrefslogtreecommitdiffstats
path: root/test/exif.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/exif.py')
-rw-r--r--test/exif.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/exif.py b/test/exif.py
index bb218c2..4ddb360 100644
--- a/test/exif.py
+++ b/test/exif.py
@@ -313,3 +313,8 @@ class TestExifTag(unittest.TestCase):
tag.value = 2
self.failIfEqual(tag.value, old_value)
+ def test_set_raw_value_invalid(self):
+ tag = ExifTag('Exif.GPSInfo.GPSVersionID')
+ value = '2 0 0 foo'
+ self.failUnlessRaises(ValueError, tag._set_raw_value, value)
+