summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-003-event.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-07 18:29:00 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-07 18:29:00 -0400
commit6e137a89f6f29975133633e2e70557b3954d4220 (patch)
tree7c36d78af4499c183996ad6d426496a55f764c2d /tests/unit/test-003-event.py
parent5de26915e7b66db1dd139b1b6d33687f7e9dfc66 (diff)
downloadpykolab-6e137a89f6f29975133633e2e70557b3954d4220.tar.gz
Add getter for event attachment data
Diffstat (limited to 'tests/unit/test-003-event.py')
-rw-r--r--tests/unit/test-003-event.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/test-003-event.py b/tests/unit/test-003-event.py
index 363c75e..81337d9 100644
--- a/tests/unit/test-003-event.py
+++ b/tests/unit/test-003-event.py
@@ -389,6 +389,7 @@ METHOD:REQUEST
self.assertEqual(parts[3]['Content-ID'].strip('<>'), attachments[0].uri()[4:])
self.assertEqual(parts[4].get_content_type(), 'text/plain')
self.assertEqual(parts[4]['Content-ID'].strip('<>'), attachments[1].uri()[4:])
+ self.assertEqual(event.get_attachment_data(1), 'This is a text file')
def test_024_bogus_itip_data(self):
# DTSTAMP contains an invalid date/time value