예제 #1
0
 def test_validation_birth_year_invalid(self):
     p = Passport(data='byr:1900')
     actual = p.validate_birth_year()
     self.assertFalse(actual)
예제 #2
0
 def test_validation_birth_year_true_if_missing(self):
     p = Passport(data='place_holder:1234')
     actual = p.validate_birth_year()
     self.assertTrue(actual)
예제 #3
0
 def test_validation_birth_year_valid(self):
     p = Passport(data='byr:1989')
     actual = p.validate_birth_year()
     self.assertTrue(actual)