Exemple #1
0
 def test_invalid_prisoner_number_validation(self):
     with self.assertRaises(ValidationError):
         validate_prisoner_number('')
     with self.assertRaises(ValidationError):
         validate_prisoner_number('1234567')
 def test_invalid_prisoner_number_validation(self):
     with self.assertRaises(ValidationError):
         validate_prisoner_number('')
     with self.assertRaises(ValidationError):
         validate_prisoner_number('1234567')
Exemple #3
0
 def test_valid_prisoner_number_validation(self):
     validate_prisoner_number('A1234AB')
     # case is ignored, but number is sent to api as uppercase
     validate_prisoner_number('a1234ab')
 def test_valid_prisoner_number_validation(self):
     validate_prisoner_number('A1234AB')
     # case is ignored, but number is sent to api as uppercase
     validate_prisoner_number('a1234ab')