aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2011-08-17 19:03:45 +0200
committerOlivier Tilloy <olivier@tilloy.net>2011-08-17 19:03:45 +0200
commit7457fbcbd52fdb8f0be56b80e4dc889d46faad59 (patch)
tree511cac155f4ded086ded2f8786780dcd8a0deeb5
parent8f076d1fe72e3ad167bbbd29b076b88d7143ef3a (diff)
downloadpyexiv2-7457fbcbd52fdb8f0be56b80e4dc889d46faad59.tar.gz
Add some sanity checks.
-rw-r--r--test/xmp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/xmp.py b/test/xmp.py
index c0ea11f..294cdc2 100644
--- a/test/xmp.py
+++ b/test/xmp.py
@@ -367,10 +367,12 @@ class TestXmpTag(unittest.TestCase):
def test_set_value_incorrect_type(self):
# Expecting a list of values
tag = XmpTag('Xmp.dc.publisher')
+ self.failUnlessEqual(tag.type, 'bag ProperName')
self.failUnlessRaises(TypeError, tag._set_value, None)
self.failUnlessRaises(TypeError, tag._set_value, 'bleh')
# Expecting a dictionary mapping language codes to values
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')