Example #1
0
 def test_invalid(self):
     with self.assertRaises(ValidationError):
         validate_fullname("ahoj\x00bar")
Example #2
0
 def test_crud(self):
     with self.assertRaises(ValidationError):
         validate_fullname(".")
Example #3
0
 def test_invalid(self):
     with self.assertRaises(ValidationError):
         validate_fullname('ahoj\x00bar')