aboutsummaryrefslogtreecommitdiffstats
path: root/test/iptc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/iptc.py')
-rw-r--r--test/iptc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/iptc.py b/test/iptc.py
index 5473090..4a8e4fe 100644
--- a/test/iptc.py
+++ b/test/iptc.py
@@ -213,6 +213,12 @@ class TestIptcTag(unittest.TestCase):
# Invalid values
self.failUnlessRaises(IptcValueError, tag._convert_to_string, None)
+ def test_set_single_value_raises(self):
+ tag = IptcTag('Iptc.Application2.City', 'City', 'City', 'Identifies ' \
+ 'city of object data origin according to guidelines ' \
+ 'established by the provider.', 'String', ['Seattle'])
+ self.failUnlessRaises(TypeError, tag._set_values, 'Barcelona')
+
def test_set_values_no_metadata(self):
tag = IptcTag('Iptc.Application2.City', 'City', 'City', 'Identifies ' \
'city of object data origin according to guidelines ' \