예제 #1
0
 def test_return_password_in_black_list(self):
     self.assertEqual(
         password_strength.get_password_strength('123qwerty',
                                                 self.black_list), 2)
예제 #2
0
 def test_return_seven_point(self):
     self.assertEqual(
         password_strength.get_password_strength('Acc123!@',
                                                 self.black_list), 7)
예제 #3
0
 def test_return_ten_point(self):
     self.assertEqual(
         password_strength.get_password_strength('Abcde12@#',
                                                 self.black_list), 10)
예제 #4
0
 def test_return_four_point(self):
     self.assertEqual(
         password_strength.get_password_strength('Abc123!',
                                                 self.black_list), 4)
예제 #5
0
 def test_return_three_point(self):
     self.assertEqual(
         password_strength.get_password_strength('abc123!',
                                                 self.black_list), 3)
예제 #6
0
 def test_return_two_point(self):
     self.assertEqual(
         password_strength.get_password_strength('ABC1', self.black_list),
         2)
예제 #7
0
 def test_return_one_point(self):
     self.assertEqual(
         password_strength.get_password_strength('1', self.black_list), 1)
예제 #8
0
 def test_empty_password(self):
     self.assertEqual(
         password_strength.get_password_strength(' ', self.black_list), 0)