diff options
Diffstat (limited to 'service/test/support')
-rw-r--r-- | service/test/support/test_helper.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/service/test/support/test_helper.py b/service/test/support/test_helper.py index b2d3cf43..ff1de64a 100644 --- a/service/test/support/test_helper.py +++ b/service/test/support/test_helper.py @@ -43,10 +43,13 @@ def mail_dict(): } -class TestDoc: +class TestDoc(object): def __init__(self, content): self.content = content + def __getitem__(self, key): + return self.content[key] + def leap_mail(uid=0, flags=LEAP_FLAGS, headers=None, extra_headers={}, mbox='INBOX', body='body', chash='chash'): |