From 7457fbcbd52fdb8f0be56b80e4dc889d46faad59 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Wed, 17 Aug 2011 19:03:45 +0200 Subject: Add some sanity checks. --- test/xmp.py | 2 ++ 1 file changed, 2 insertions(+) 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') -- cgit