def testIsXMLNCNameNonASCII(self): if not isXMLNCName('äöüß'): self.fail()
def testIsXMLNCNameEmpty(self): if isXMLNCName(''): self.fail()
def testIsXMLNCNameSpaces(self): if isXMLNCName('with spaces'): self.fail()
def __call__(self, value, *args, **kwargs): from Products.PloneOntology.owl import isXMLNCName if not isXMLNCName(value): return ("Validation failed (%s): '%s' is not an XML NCName." % (self.name, value)) else: return 1