summaryrefslogtreecommitdiffstats
path: root/tests/test-001.py
blob: 83f1c331f731da7e9f6cff07ea9e5ad6fde7ff94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()