summaryrefslogtreecommitdiff
path: root/service/test/unit/adapter/search/test_search.py
diff options
context:
space:
mode:
authorJon Newson <jon_newson@ieee.org>2016-03-04 10:37:14 +1100
committerJon Newson <jon_newson@ieee.org>2016-03-04 10:37:14 +1100
commit9f467ef8bfd85921d310976e8554af119f7f0341 (patch)
tree633426e43c5613c801ce14b340bc616b56762f5e /service/test/unit/adapter/search/test_search.py
parent2662e78497ce527467556a15c3cc9b20f84929ba (diff)
parent59532a50c8b0233b2a596b996cbe799b745c4fac (diff)
Merge branch 'master' of https://github.com/pixelated/pixelated-user-agent
Diffstat (limited to 'service/test/unit/adapter/search/test_search.py')
-rw-r--r--service/test/unit/adapter/search/test_search.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/test/unit/adapter/search/test_search.py b/service/test/unit/adapter/search/test_search.py
index 198a818b..be37257c 100644
--- a/service/test/unit/adapter/search/test_search.py
+++ b/service/test/unit/adapter/search/test_search.py
@@ -20,6 +20,7 @@ import unittest
from pixelated.adapter.mailstore.leap_mailstore import LeapMail
from pixelated.adapter.search import SearchEngine
from tempdir import TempDir
+from datetime import datetime
from test.support import test_helper
from pixelated.support.functional import to_unicode
@@ -57,6 +58,7 @@ class SearchEngineTest(unittest.TestCase):
'To': '=?utf-8?b?IsOEw7zDtiDDlsO8w6QiIDxmb2xrZXJAcGl4ZWxhdGVkLXByb2plY3Qub3Jn?=\n =?utf-8?b?PiwgRsO2bGtlciA8Zm9sa2VyQHBpeGVsYXRlZC1wcm9qZWN0Lm9yZz4=?=',
'Cc': '=?utf-8?b?IsOEw7zDtiDDlsO8w6QiIDxmb2xrZXJAcGl4ZWxhdGVkLXByb2plY3Qub3Jn?=\n =?utf-8?b?PiwgRsO2bGtlciA8Zm9sa2VyQHBpeGVsYXRlZC1wcm9qZWN0Lm9yZz4=?=',
'Subject': 'Some test mail',
+ 'Date': str(datetime.now())
}
# when
@@ -75,6 +77,7 @@ class SearchEngineTest(unittest.TestCase):
'To': '=?utf-8?b?IsOEw7zDtiDDlsO8w6QiIDxmb2xrZXJAcGl4ZWxhdGVkLXByb2plY3Qub3Jn?=\n =?utf-8?b?PiwgRsO2bGtlciA8Zm9sa2VyQHBpeGVsYXRlZC1wcm9qZWN0Lm9yZz4=?=',
'Cc': '=?utf-8?b?IsOEw7zDtiDDlsO8w6QiIDxmb2xrZXJAcGl4ZWxhdGVkLXByb2plY3Qub3Jn?=\n =?utf-8?b?PiwgRsO2bGtlciA8Zm9sa2VyQHBpeGVsYXRlZC1wcm9qZWN0Lm9yZz4=?=',
'Subject': 'Some test mail',
+ 'Date': str(datetime.now())
}
body = "When doing the search, it's not possible to find words with graphical accents, e.g.: 'coração', 'é', 'Fièvre', La Pluie d'été, 'não'."
@@ -100,6 +103,7 @@ class SearchEngineTest(unittest.TestCase):
'To': '=?utf-8?b?IsOEw7zDtiDDlsO8w6QiIDxmb2xrZXJAcGl4ZWxhdGVkLXByb2plY3Qub3Jn?=\n =?utf-8?b?PiwgRsO2bGtlciA8Zm9sa2VyQHBpeGVsYXRlZC1wcm9qZWN0Lm9yZz4=?=',
'Cc': '=?utf-8?b?IsOEw7zDtiDDlsO8w6QiIDxmb2xrZXJAcGl4ZWxhdGVkLXByb2plY3Qub3Jn?=\n =?utf-8?b?PiwgRsO2bGtlciA8Zm9sa2VyQHBpeGVsYXRlZC1wcm9qZWN0Lm9yZz4=?=',
'Subject': 'Some test mail',
+ 'Date': str(datetime.now())
}
body = "When doing the search, 您好 أهلا"