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