[tracker/tracker-0.10] functional-tests: extraction test, support <uuid> urls



commit 9c89fc9bdaa36f9d23fe74ad2bffe29dd488221f
Author: Ivan Frade <ivan frade gmail com>
Date:   Thu Aug 25 15:45:32 2011 +0300

    functional-tests: extraction test, support <uuid> urls

 tests/functional-tests/400-extractor.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/400-extractor.py b/tests/functional-tests/400-extractor.py
index 2e3762d..c0f1683 100755
--- a/tests/functional-tests/400-extractor.py
+++ b/tests/functional-tests/400-extractor.py
@@ -138,6 +138,9 @@ class ExtractionTestCase (ut.TestCase):
         import uuid
 
         try:
+            if (supposed_uuid.startswith ("<") and supposed_uuid.endswith (">")):
+                supposed_uuid = supposed_uuid[1:-1]
+
             uuid.UUID (supposed_uuid)
         except ValueError:
             standardMsg = "'%s' is not a valid UUID" % (supposed_uuid)



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