Ejemplo n.º 1
0
 def test_invalid_passport_id(self):
     passport = self.valid_passport.copy()
     passport["pid"] = "0123456789"
     self.assertFalse(day_4.valid_fields(passport))
Ejemplo n.º 2
0
 def test_invalid_eye_color(self):
     passport = self.valid_passport.copy()
     passport["ecl"] = "wat"
     self.assertFalse(day_4.valid_fields(passport))
Ejemplo n.º 3
0
 def test_height_too_big(self):
     passport = self.valid_passport.copy()
     passport["hgt"] = "190in"
     self.assertFalse(day_4.valid_fields(passport))
Ejemplo n.º 4
0
 def test_invalid_height(self):
     passport = self.valid_passport.copy()
     passport["hgt"] = "190"
     self.assertFalse(day_4.valid_fields(passport))
Ejemplo n.º 5
0
 def test_invalid_birth_year(self):
     passport = self.valid_passport.copy()
     passport["byr"] = "2003"
     self.assertFalse(day_4.valid_fields(passport))