Example #1
0
 def test_valid_string(self):
     valid_string = 'foobar'
     eq_(validate_regex(valid_string), valid_string)
Example #2
0
 def test_valid_string(self):
     valid_string = 'foobar'
     self.assertEqual(validate_regex(valid_string), valid_string)
Example #3
0
 def test_valid_regex(self):
     valid_regex = '/\d+/'
     eq_(validate_regex(valid_regex), valid_regex)
Example #4
0
 def test_valid_regex(self):
     valid_regex = '/\d+/'
     self.assertEqual(validate_regex(valid_regex), valid_regex)