def test_invalid_passport_id(self): passport = self.valid_passport.copy() passport["pid"] = "0123456789" self.assertFalse(day_4.valid_fields(passport))
def test_invalid_eye_color(self): passport = self.valid_passport.copy() passport["ecl"] = "wat" self.assertFalse(day_4.valid_fields(passport))
def test_height_too_big(self): passport = self.valid_passport.copy() passport["hgt"] = "190in" self.assertFalse(day_4.valid_fields(passport))
def test_invalid_height(self): passport = self.valid_passport.copy() passport["hgt"] = "190" self.assertFalse(day_4.valid_fields(passport))
def test_invalid_birth_year(self): passport = self.valid_passport.copy() passport["byr"] = "2003" self.assertFalse(day_4.valid_fields(passport))