def test_valid_string(self): valid_string = 'foobar' eq_(validate_regex(valid_string), valid_string)
def test_valid_string(self): valid_string = 'foobar' self.assertEqual(validate_regex(valid_string), valid_string)
def test_valid_regex(self): valid_regex = '/\d+/' eq_(validate_regex(valid_regex), valid_regex)
def test_valid_regex(self): valid_regex = '/\d+/' self.assertEqual(validate_regex(valid_regex), valid_regex)