Ejemplo n.º 1
0
 def test_regexfunction_false(self):
     value = '[^a-zA-Z0-9]'
     func = RegexFunction(value)
     self.assertFalse(func.match(random_string()))
 def test_regexfunction_false(self):
     value = '[^a-zA-Z0-9]'
     func = RegexFunction(value)
     self.assertFalse(func.match(random_string()))
Ejemplo n.º 3
0
 def test_regexfunction_true(self):
     value = r'[\w+]'
     func = RegexFunction(value)
     self.assertTrue(func.match(random_string()))
 def test_regexfunction_true(self):
     value = r'[\w+]'
     func = RegexFunction(value)
     self.assertTrue(func.match(random_string()))