コード例 #1
0
 def test_invalid_prisoner_number_validation(self):
     with self.assertRaises(ValidationError):
         validate_prisoner_number('')
     with self.assertRaises(ValidationError):
         validate_prisoner_number('1234567')
コード例 #2
0
 def test_invalid_prisoner_number_validation(self):
     with self.assertRaises(ValidationError):
         validate_prisoner_number('')
     with self.assertRaises(ValidationError):
         validate_prisoner_number('1234567')
コード例 #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')
コード例 #4
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')