summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-12-28 15:17:53 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-12-28 15:17:53 +0100
commit0c6b9c6554eff27e30a6c2029c5b08d8f14565e2 (patch)
tree4cdec10f05edca37261ea7c93180f53ad8c61263 /tests
parentb58198bd8233bf97075ecea085bcf103a370670a (diff)
downloadpykolab-0c6b9c6554eff27e30a6c2029c5b08d8f14565e2.tar.gz
Complete coverage
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test-002-attendee.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/test-002-attendee.py b/tests/unit/test-002-attendee.py
index d7584e3..ccde3ac 100644
--- a/tests/unit/test-002-attendee.py
+++ b/tests/unit/test-002-attendee.py
@@ -32,7 +32,7 @@ class TestEventXML(unittest.TestCase):
self.assertEqual(self.attendee.get_participant_status(), 0)
def test_005_participant_status_map_length(self):
- self.assertEqual(len(self.attendee.participant_status_map.keys()), 5)
+ self.assertEqual(len(self.attendee.participant_status_map.keys()), 7)
def test_006_participant_status_map_forward_lookup(self):
# Forward lookups
@@ -41,6 +41,8 @@ class TestEventXML(unittest.TestCase):
self.assertEqual(self.attendee.participant_status_map["DECLINED"], 2)
self.assertEqual(self.attendee.participant_status_map["TENTATIVE"], 3)
self.assertEqual(self.attendee.participant_status_map["DELEGATED"], 4)
+ self.assertEqual(self.attendee.participant_status_map["IN-PROCESS"], 5)
+ self.assertEqual(self.attendee.participant_status_map["COMPLETED"], 6)
def test_007_participant_status_map_reverse_lookup(self):
# Reverse lookups
@@ -49,6 +51,8 @@ class TestEventXML(unittest.TestCase):
self.assertEqual([k for k,v in self.attendee.participant_status_map.iteritems() if v == 2][0], "DECLINED")
self.assertEqual([k for k,v in self.attendee.participant_status_map.iteritems() if v == 3][0], "TENTATIVE")
self.assertEqual([k for k,v in self.attendee.participant_status_map.iteritems() if v == 4][0], "DELEGATED")
+ self.assertEqual([k for k,v in self.attendee.participant_status_map.iteritems() if v == 5][0], "IN-PROCESS")
+ self.assertEqual([k for k,v in self.attendee.participant_status_map.iteritems() if v == 6][0], "COMPLETED")
def test_008_default_rsvp(self):
self.assertEqual(self.attendee.get_rsvp(), 0)