summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-07-13 15:02:15 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-07-13 15:02:15 +0100
commit1b5a666f9a12d55a382fb608ed2cd03dba3dcf99 (patch)
treed49bdf63200712afc136bd2767044be3e1c8747c /tests
parent53b5d85dda5f956892a0074863d965d4c14a96fe (diff)
downloadpykolab-1b5a666f9a12d55a382fb608ed2cd03dba3dcf99.tar.gz
Fix tests for basestrings while actually we want strs
Diffstat (limited to 'tests')
-rw-r--r--tests/test-001-contact_reference.py2
-rw-r--r--tests/test-002-attendee.py2
-rw-r--r--tests/test-003-event.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-001-contact_reference.py b/tests/test-001-contact_reference.py
index c80d139..7c8f128 100644
--- a/tests/test-001-contact_reference.py
+++ b/tests/test-001-contact_reference.py
@@ -16,7 +16,7 @@ class TestEventXML(unittest.TestCase):
raise AssertionError, "%s != %s" % (type(_value), _type)
def test_001_minimal(self):
- self.assertIsInstance(self.contact_reference.__str__(), basestring)
+ self.assertIsInstance(self.contact_reference.__str__(), str)
def test_002_empty_name(self):
self.assertEqual(self.contact_reference.get_name(), "")
diff --git a/tests/test-002-attendee.py b/tests/test-002-attendee.py
index 465349a..4298761 100644
--- a/tests/test-002-attendee.py
+++ b/tests/test-002-attendee.py
@@ -16,7 +16,7 @@ class TestEventXML(unittest.TestCase):
raise AssertionError, "%s != %s" % (type(_value), _type)
def test_001_minimal(self):
- self.assertIsInstance(self.attendee.__str__(), basestring)
+ self.assertIsInstance(self.attendee.__str__(), str)
def test_002_empty_name(self):
self.assertEqual(self.attendee.get_name(), "")
diff --git a/tests/test-003-event.py b/tests/test-003-event.py
index 9da4cf6..8f76397 100644
--- a/tests/test-003-event.py
+++ b/tests/test-003-event.py
@@ -27,7 +27,7 @@ class TestEventXML(unittest.TestCase):
def test_001_minimal(self):
self.event.set_start(datetime.datetime.now(pytz.timezone("Europe/London")))
self.assertIsInstance(self.event.get_start(), datetime.datetime)
- self.assertIsInstance(self.event.__str__(), basestring)
+ self.assertIsInstance(self.event.__str__(), str)
def test_002_attendees_list(self):
self.assertIsInstance(self.event.get_attendees(), list)