def test_invalid(self): with self.assertRaises(ValidationError): validate_fullname("ahoj\x00bar")
def test_crud(self): with self.assertRaises(ValidationError): validate_fullname(".")
def test_invalid(self): with self.assertRaises(ValidationError): validate_fullname('ahoj\x00bar')