def test_validation_birth_year_invalid(self): p = Passport(data='byr:1900') actual = p.validate_birth_year() self.assertFalse(actual)
def test_validation_birth_year_true_if_missing(self): p = Passport(data='place_holder:1234') actual = p.validate_birth_year() self.assertTrue(actual)
def test_validation_birth_year_valid(self): p = Passport(data='byr:1989') actual = p.validate_birth_year() self.assertTrue(actual)