diff options
-rw-r--r-- | test/iptc.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/iptc.py b/test/iptc.py index 1940efd..6da1580 100644 --- a/test/iptc.py +++ b/test/iptc.py @@ -195,3 +195,8 @@ class TestIptcTag(unittest.TestCase): values = ['foo'] self.failUnlessRaises(ValueError, tag._set_raw_values, values) + def test_set_values_non_repeatable(self): + tag = IptcTag('Iptc.Application2.ReleaseDate') + values = [datetime.date.today(), datetime.date.today()] + self.failUnlessRaises(KeyError, tag._set_values, values) + |