[tracker] functional-tests: last details in collation testing



commit 50d606eb8dc1e0de3aaf090d0822bf0f8aafb105
Author: Ivan Frade <ivan frade nokia com>
Date:   Thu Sep 23 17:38:31 2010 +0300

    functional-tests: last details in collation testing

 tests/functional-tests/16-collation.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/16-collation.py b/tests/functional-tests/16-collation.py
index f75281c..d16867f 100755
--- a/tests/functional-tests/16-collation.py
+++ b/tests/functional-tests/16-collation.py
@@ -50,6 +50,9 @@ class TrackerStoreCollationTests (CommonTrackerStoreTest):
 
     def __insert_text (self, text):
         uri = "test://collation-01-%d" % (random.randint (1, 1000))
+        # There is a remote chance to get a duplicate int
+        while (uri in self.clean_up_instances):
+            uri = "test://collation-01-%d" % (random.randint (1, 1000))
         self.clean_up_instances.append (uri)
         
         self.tracker.update ("""
@@ -115,6 +118,11 @@ class TrackerStoreCollationTests (CommonTrackerStoreTest):
         self.__collation_test (input_dt, expected)
 
 if __name__ == "__main__":
+    print """
+    TODO:
+      * Check what happens in non-english encoding
+      * Dynamic change of collation (not implemented yet in tracker)
+    """
     ut.main ()
 
     



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]