aboutsummaryrefslogtreecommitdiffstats
path: root/test/iptc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/iptc.py')
-rw-r--r--test/iptc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/iptc.py b/test/iptc.py
index 3b151a5..1940efd 100644
--- a/test/iptc.py
+++ b/test/iptc.py
@@ -190,3 +190,8 @@ class TestIptcTag(unittest.TestCase):
tag.values = ['Barcelona']
self.failIfEqual(tag.values, old_values)
+ def test_set_raw_values_invalid(self):
+ tag = IptcTag('Iptc.Envelope.DateSent')
+ values = ['foo']
+ self.failUnlessRaises(ValueError, tag._set_raw_values, values)
+