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