コード例 #1
0
 def test_case7(self):
     self.pwd = unit.changePassword("khalsa13raj", "", "")
     self.assertEqual(self.pwd.Check_valid(), False,
                      "Empty passwords not accetable!")
コード例 #2
0
 def test_case1(self):
     self.pwd = unit.changePassword("khalsa13raj", "waheguru", "waheguru")
     self.assertEqual(self.pwd.Check_valid(), False,
                      "Only alphabets in password are not acceptable!")
コード例 #3
0
 def test_case6(self):
     self.pwd = unit.changePassword("khalsa13raj", "prabh@#", "prabh@#")
     self.assertEqual(
         self.pwd.Check_valid(), False,
         "Special character should not be there in passwords!")
コード例 #4
0
 def test_case5(self):
     self.pwd = unit.changePassword("khalsa13raj", "dhan", "dhan")
     self.assertEqual(
         self.pwd.Check_valid(), False,
         "Passwords of length less than 6 are not acceptable!")
コード例 #5
0
 def test_case4(self):
     self.pwd = unit.changePassword("khalsa13raj", "waheguru1",
                                    "waheguru13")
     self.assertEqual(self.pwd.Check_valid(), False,
                      "The passwords does not match!")
コード例 #6
0
 def test_case3(self):
     self.pwd = unit.changePassword("khalsa13raj", "khals1", "khals1")
     self.assertEqual(self.pwd.Check_valid(), False,
                      "Password of length 6 is not acceptable!")
コード例 #7
0
 def test_case2(self):
     self.pwd = unit.changePassword("khalsa13raj", "9876543", "9876543")
     self.assertEqual(self.pwd.Check_valid(), False,
                      "Only digits in password are not acceptable!")