summaryrefslogtreecommitdiff
path: root/src/dbus/server/pim/testpim.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus/server/pim/testpim.py')
-rwxr-xr-xsrc/dbus/server/pim/testpim.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/dbus/server/pim/testpim.py b/src/dbus/server/pim/testpim.py
index 69e2a88d..143acb56 100755
--- a/src/dbus/server/pim/testpim.py
+++ b/src/dbus/server/pim/testpim.py
@@ -2290,6 +2290,29 @@ END:VCARD
@timeout(60)
@property("ENV", "LC_TYPE=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 LANG=de_DE.UTF-8")
+ def testFilterGermany(self):
+ self.doFilter(# Names of all contacts, sorted as expected.
+ # DIN 5007 Variant 2 defines phone book sorting in
+ # Germany. It does not apply to Austria.
+ # Example from http://de.wikipedia.org/wiki/Alphabetische_Sortierung
+ (u'Göbel', u'Goethe', u'Göthe', u'Götz', u'Goldmann'),
+ (),
+ )
+
+ # Not supported correctly by ICU?
+ # See icu-support "Subject: Austrian phone book sorting"
+ # @timeout(60)
+ # @property("ENV", "LC_TYPE=de_AT.UTF-8 LC_ALL=de_AT.UTF-8 LANG=de_AT.UTF-8")
+ # def testFilterAustria(self):
+ # self.doFilter(# Names of all contacts, sorted as expected.
+ # # Austrian phone book sorting.
+ # # Example from http://de.wikipedia.org/wiki/Alphabetische_Sortierung
+ # (u'Goethe', u'Goldmann', u'Göbel', u'Göthe', u'Götz'),
+ # (),
+ # )
+
+ @timeout(60)
+ @property("ENV", "LC_TYPE=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 LANG=de_DE.UTF-8")
def testFilterQuiescence(self):
'''TestContacts.testFilterQuiescence - check that starting server via filter leads to quiescence signal'''
self.setUpView(peers=[], withSystemAddressBook=True, search=[('any-contains', 'foo')])