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