コード例 #1
0
 def test3_numbValidation(self):
     result = validator(self.passwords[0],['NUMBERS','<',3])
     self.assertEqual(False,result)
コード例 #2
0
 def test1_numbValidation(self):
     result = validator(self.passwords[1],['NUMBERS','>',5])
     self.assertEqual(False,result)
コード例 #3
0
 def test2_numbValidation(self):
     result = validator(self.passwords[5],['NUMBERS','>',9])
     self.assertEqual(True,result)
コード例 #4
0
 def test1_wrongValidation(self):
     result = validator(self.passwords[0],[])
     self.assertEqual(False,result)
コード例 #5
0
 def test6_letValidation(self):
     result = validator(self.passwords[3],['LETTERS','==',9])
     self.assertEqual(True,result)
コード例 #6
0
 def test1_speValidation(self):
     result = validator(self.passwords[1],['SPECIALS','>',3])
     self.assertEqual(False,result)
コード例 #7
0
 def test3_speValidation(self):
     result = validator(self.passwords[3],['SPECIALS','<',2])
     self.assertEqual(False,result)
コード例 #8
0
 def test1_letValidation(self):
     result = validator(self.passwords[1],['LETTERS','>',10])
     self.assertEqual(False,result)
コード例 #9
0
 def test2_letValidation(self):
     result = validator(self.passwords[5],['LETTERS','>',10])
     self.assertEqual(True,result)
コード例 #10
0
 def test4_lenValidation(self):
     result = validator(self.passwords[5],['LEN','<',30])
     self.assertEqual(False,result)
コード例 #11
0
 def test5_lenValidation(self):
     result = validator(self.passwords[1],['LEN','==',9])
     self.assertEqual(True,result)
コード例 #12
0
 def test3_lenValidation(self):
     result = validator(self.passwords[3],['LEN','<',30])
     self.assertEqual(True,result)
コード例 #13
0
 def test5_wrongValidation(self):
     result = validator('',['SPECIALS','==',1])
     self.assertEqual(False,result)
コード例 #14
0
 def test4_wrongValidation(self):
     result = validator(self.passwords[0],['SPECIALS','==','dois'])
     self.assertEqual(False,result)
コード例 #15
0
 def test4_numbValidation(self):
     result = validator(self.passwords[1],['NUMBERS','<',3])
     self.assertEqual(True,result)
コード例 #16
0
 def test3_letValidation(self):
     result = validator(self.passwords[0],['LETTERS','<',7])
     self.assertEqual(False,result)
コード例 #17
0
 def test6_numbValidation(self):
     result = validator(self.passwords[4],['NUMBERS','==',5])
     self.assertEqual(True,result)
コード例 #18
0
 def test4_letValidation(self):
     result = validator(self.passwords[4],['LETTERS','<',7])
     self.assertEqual(True,result)
コード例 #19
0
 def test1_lenValidation(self):
     result = validator(self.passwords[1],['LEN','>',9])
     self.assertEqual(False,result)
コード例 #20
0
 def test5_letValidation(self):
     result = validator(self.passwords[2],['LETTERS','==',9])
     self.assertEqual(False,result)
コード例 #21
0
 def test4_speValidation(self):
     result = validator(self.passwords[2],['SPECIALS','<',6])
     self.assertEqual(True,result)
コード例 #22
0
 def test6_speValidation(self):
     result = validator(self.passwords[0],['SPECIALS','==',1])
     self.assertEqual(True,result)