示例#1
0
 def test_hasNoBadChar(self):
     self.assertTrue(pwd.hasNoBadChar("aabc"), True)
示例#2
0
 def test_hasNoBadCharFalse(self):
     self.assertEqual(pwd.hasNoBadChar("aai"), False)
     self.assertEqual(pwd.hasNoBadChar("aao"), False)
     self.assertEqual(pwd.hasNoBadChar("aal"), False)
     self.assertEqual(pwd.hasNoBadChar("aabcc"), True)
示例#3
0
 def test_hasNoBadChar(self):
     self.assertFalse(pwd.hasNoBadChar("aaoaa"))
     self.assertFalse(pwd.hasNoBadChar("oaaaa"))
     self.assertFalse(pwd.hasNoBadChar("aalaa"))
     self.assertFalse(pwd.hasNoBadChar("aaaai"))
     self.assertTrue(pwd.hasNoBadChar("aaaaa"))
示例#4
0
 def test_hasNoBadChar_f(self):
     self.asserEqual(pwd.hasNoBadChar("jolie"),False)
示例#5
0
 def test_hasNoBadCharFail(self):
     self.assertEqual(pwd.hasNoBadChar("joly"), False)
示例#6
0
 def test_hasNoBadChar(self):
     self.assertFalse(pwd.hasNoBadChar("aaoaa"))
     self.assertFalse(pwd.hasNoBadChar("oaaaa"))
     self.assertFalse(pwd.hasNoBadChar("aalaa"))
     self.assertFalse(pwd.hasNoBadChar("aaaai"))
     self.assertTrue(pwd.hasNoBadChar("aaaaa"))
示例#7
0
 def test_hasNoBadChar4(self):
     self.assertEqual(pwd.hasNoBadChar("abci"), False)
示例#8
0
 def test_hasNotBadChar2(self):
     self.assertEquals(pwd.hasNoBadChar("joli"), False)
示例#9
0
 def test_hasNoBadChar(self):
     self.assertEqual(pwd.hasNoBadChar("abced"),True)
示例#10
0
 def test_hasNotBadChar2(self):
     self.assertEquals(pwd.hasNoBadChar("joli"),False)
示例#11
0
 def test_hasNotBadChar(self):
     self.assertEquals(pwd.hasNoBadChar("test"), True)
示例#12
0
 def test_hasNotBadChar(self):
     self.assertEquals(pwd.hasNoBadChar("test"),True)
示例#13
0
 def test_hasNoBadChar(self):
     self.assertFalse(pwd.hasNoBadChar("albc"), True)
示例#14
0
 def test_hasNoBadChar(self):
     self.assertTrue(pwd.hasNoBadChar("aabc"), True)
示例#15
0
 def test_hasNoBadChar(self):
     self.assertFalse(pwd.hasNoBadChar("albc"), True)
 def test_hasNoBadChar_true(self):
     self.assertTrue(pwd.hasNoBadChar('adbgrd'))
示例#17
0
 def test_hasNoBadCharFalse(self):
     self.assertEqual(pwd.hasNoBadChar("aai"), False)
     self.assertEqual(pwd.hasNoBadChar("aao"), False)
     self.assertEqual(pwd.hasNoBadChar("aal"), False)
     self.assertEqual(pwd.hasNoBadChar("aabcc"), True)
 def test_hasNoBadChar_false(self):
     self.assertFalse(pwd.hasNoBadChar('iol'))
示例#19
0
 def test_hasNoBadChar1(self):
     self.assertEqual(pwd.hasNoBadChar("aiol"), False)
示例#20
0
 def test_hasNoBadChar_true(self):
     self.assertTrue(pwd.hasNoBadChar('adbgrd'))
示例#21
0
 def test_hasNoBadChar5(self):
     self.assertEqual(pwd.hasNoBadChar("azef"), True)
示例#22
0
 def test_hasNoBadChar_false(self):
     self.assertFalse(pwd.hasNoBadChar('iol'))
示例#23
0
 def test_hasNoBadChar_t(self):
    self.asserEqual(pwd.hasNoBadChar("bffcu"),True)
示例#24
0
 def test_hasNoBadCharNormal(self):
     self.assertEqual(pwd.hasNoBadChar("kebab"), True)