Exemple #1
0
 def test_validate_height_valid_missing_height(self):
     p = Passport(data='place_holder:1234')
     actual = p.validate_height()
     self.assertTrue(actual)
Exemple #2
0
 def test_validate_height_invalid_string(self):
     p = Passport(data='hgt:58sin')
     actual = p.validate_height()
     self.assertFalse(actual)
Exemple #3
0
 def test_validate_height_invalid_cm(self):
     p = Passport(data='hgt:140cm')
     actual = p.validate_height()
     self.assertFalse(actual)
Exemple #4
0
 def test_validate_height_valid_in(self):
     p = Passport(data='hgt:59in')
     actual = p.validate_height()
     self.assertTrue(actual)
Exemple #5
0
 def test_validate_height_valid_cm(self):
     p = Passport(data='hgt:160cm')
     actual = p.validate_height()
     self.assertTrue(actual)