summaryrefslogtreecommitdiffstats
path: root/tests/test-001.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-001.py')
-rw-r--r--tests/test-001.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test-001.py b/tests/test-001.py
new file mode 100644
index 0000000..83f1c33
--- /dev/null
+++ b/tests/test-001.py
@@ -0,0 +1,18 @@
+import datetime
+import unittest
+
+from pykolab.xml import Attendee
+
+class TestEventXML(unittest.TestCase):
+ attendee = Attendee("jane@doe.org")
+
+ def test_001_minimal(self):
+ self.assertIsInstance(self.attendee.__str__(), basestring)
+
+ def test_002_set_name(self):
+ name = "Doe, Jane"
+ self.attendee.set_name(name)
+ self.assertEqual(self.attendee.get_name(), name)
+
+if __name__ == '__main__':
+ unittest.main()