[tracker/roi-png-fix: 9/14] functional-tests: extraction test, support <uuid> urls



commit 86479bde87eabad187f6da2828b8dd922a737f03
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 71050aa..063d562 100755
--- a/tests/functional-tests/400-extractor.py
+++ b/tests/functional-tests/400-extractor.py
@@ -142,6 +142,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]