diff options
Diffstat (limited to 'tests/test-003-event.py')
-rw-r--r-- | tests/test-003-event.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-003-event.py b/tests/test-003-event.py index c18523a..9da4cf6 100644 --- a/tests/test-003-event.py +++ b/tests/test-003-event.py @@ -12,6 +12,15 @@ from pykolab.xml import InvalidEventDateError class TestEventXML(unittest.TestCase): event = Event() + 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_000_no_start_date(self): self.assertRaises(EventIntegrityError, self.event.__str__) |