summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2013-05-14 21:42:37 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2013-05-16 11:25:05 +0200
commit11224d2df09658c18aba3a71bd84ae314234f715 (patch)
tree4c1c72226e9bc7baefa44f03ec5d727fffd55a58
parent0681183fac9cfbc37bf35ac894ff9b06cce757fc (diff)
PIM testing: sorting test for de
The test only passes for Germany. In Austria, ICU itself does not return the results mentioned in Wikipedia. Therefore that test is commented out.
-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')])