diff options
Diffstat (limited to 'service/test/adapter')
-rw-r--r-- | service/test/adapter/test_helper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/test/adapter/test_helper.py b/service/test/adapter/test_helper.py index 94158f1c..7b935e7f 100644 --- a/service/test/adapter/test_helper.py +++ b/service/test/adapter/test_helper.py @@ -1,4 +1,5 @@ from mock import Mock +from datetime import datetime LEAP_FLAGS = ['\\Seen', '\\Answered', @@ -8,7 +9,7 @@ LEAP_FLAGS = ['\\Seen', '\\Recent', 'List'] -def leap_mail(uid=0, extra_flags=[], headers={}): +def leap_mail(uid=0, extra_flags=[], headers={'date': str(datetime.now())}): flags = LEAP_FLAGS + extra_flags return Mock(getUID=Mock(return_value=uid), getFlags=Mock(return_value=flags), |