def test_validate_height_valid_missing_height(self): p = Passport(data='place_holder:1234') actual = p.validate_height() self.assertTrue(actual)
def test_validate_height_invalid_string(self): p = Passport(data='hgt:58sin') actual = p.validate_height() self.assertFalse(actual)
def test_validate_height_invalid_cm(self): p = Passport(data='hgt:140cm') actual = p.validate_height() self.assertFalse(actual)
def test_validate_height_valid_in(self): p = Passport(data='hgt:59in') actual = p.validate_height() self.assertTrue(actual)
def test_validate_height_valid_cm(self): p = Passport(data='hgt:160cm') actual = p.validate_height() self.assertTrue(actual)