xrn was breaking the tests
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 3 Jun 2012 12:06:00 +0000 (14:06 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 3 Jun 2012 12:06:00 +0000 (14:06 +0200)
sfa/util/xrn.py

index c9c8db0..083e620 100644 (file)
@@ -93,11 +93,12 @@ class Xrn:
         return False
 
     ########## basic tools on URNs
-    URN_PREFIX = "urn:publicid:idn"
+    URN_PREFIX = "urn:publicid:IDN"
+    URN_PREFIX_lower = "urn:publicid:idn"
 
     @staticmethod
     def is_urn (text):
-        return text.lower().startswith(Xrn.URN_PREFIX)
+        return text.lower().startswith(Xrn.URN_PREFIX_lower)
 
     @staticmethod
     def urn_full (urn):