diff options
Diffstat (limited to 'test/xmp.py')
-rw-r--r-- | test/xmp.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/xmp.py b/test/xmp.py index 294cdc2..6183277 100644 --- a/test/xmp.py +++ b/test/xmp.py @@ -374,7 +374,13 @@ class TestXmpTag(unittest.TestCase): tag = XmpTag('Xmp.dc.description') self.failUnlessEqual(tag.type, 'Lang Alt') self.failUnlessRaises(TypeError, tag._set_value, None) - self.failUnlessRaises(TypeError, tag._set_value, 'bleh') + self.failUnlessRaises(TypeError, tag._set_value, ['bleh']) + + def test_set_value_basestring_for_langalt(self): + tag = XmpTag('Xmp.dc.description') + self.failUnlessEqual(tag.type, 'Lang Alt') + tag.value = 'bleh' + self.failUnlessEqual(tag.value, {'x-default': 'bleh'}) class TestXmpNamespaces(unittest.TestCase): |