Example #1
0
 def test_isValidHair_tooShort(self):
     self.assertEqual(False, passport.isValidHair("#11111"))
Example #2
0
 def test_isValidHair_ones(self):
     self.assertTrue(passport.isValidHair("#111111"))
Example #3
0
 def test_isValidHair_missingHash(self):
     self.assertEqual(False, passport.isValidHair("111111"))
Example #4
0
 def test_isValidHair_knownGood(self):
     self.assertTrue(passport.isValidHair("#123abc"))
Example #5
0
 def test_isValidHair_knownBad2(self):
     self.assertEqual(False, passport.isValidHair("123abc"))
Example #6
0
 def test_isValidHair_invalidHex(self):
     self.assertEqual(False, passport.isValidHair("#11111g"))