summaryrefslogtreecommitdiffstats
path: root/tests/test-001-contact_reference.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-001-contact_reference.py')
-rw-r--r--tests/test-001-contact_reference.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-001-contact_reference.py b/tests/test-001-contact_reference.py
index 81ce3b5..c80d139 100644
--- a/tests/test-001-contact_reference.py
+++ b/tests/test-001-contact_reference.py
@@ -6,6 +6,15 @@ from pykolab.xml import ContactReference
class TestEventXML(unittest.TestCase):
contact_reference = ContactReference("jane@doe.org")
+ def assertIsInstance(self, _value, _type):
+ if hasattr(unittest.TestCase, 'assertIsInstance'):
+ return unittest.TestCase.assertIsInstance(self, _value, _type)
+ else:
+ if (type(_value)) == _type:
+ return True
+ else:
+ raise AssertionError, "%s != %s" % (type(_value), _type)
+
def test_001_minimal(self):
self.assertIsInstance(self.contact_reference.__str__(), basestring)