예제 #1
0
	def test_case1(self):
		self.pwd=pwd_app.change_password("qwerty", "456tyhgrd", "zxcvbnb", "zxcvbnb")
		self.assertEqual(self.pwd.check_password_validity(), False, "Only alphabets in password are not acceptable!")		
예제 #2
0
	def test_case6(self):
		self.pwd=pwd_app.change_password("qwerty", "456tyhgrd", "sswer@#", "sswer@#")
		self.assertEqual(self.pwd.check_password_validity(), False, "Special character should not be there in passwords!")
예제 #3
0
	def test_case7(self):
		self.pwd=pwd_app.change_password("qwerty", "456tyhgrd", "", "")
		self.assertEqual(self.pwd.check_password_validity(), False, "Empty passwords not accetable!")
예제 #4
0
	def test_case4(self):
		self.pwd=pwd_app.change_password("qwerty", "456tyhgrd", "abcde234", "abcde342")
		self.assertEqual(self.pwd.check_password_validity(), False, "The last 2 passwords should match!")		
예제 #5
0
	def test_case5(self):
		self.pwd=pwd_app.change_password("qwerty", "456tyhgrd", "abc", "abc")
		self.assertEqual(self.pwd.check_password_validity(), False, "Passwords of length less than 6 are not acceptable!")
예제 #6
0
	def test_case2(self):
		self.pwd=pwd_app.change_password("qwerty", "456tyhgrd", "1234567", "1234567")
		self.assertEqual(self.pwd.check_password_validity(), False, "Only digits in password are not acceptable!")		
예제 #7
0
	def test_case3(self):
		self.pwd=pwd_app.change_password("qwerty", "456tyhgrd", "abcde2", "abcde2")
		self.assertEqual(self.pwd.check_password_validity(), False, "Password of length 6 is not acceptable!")		
예제 #8
0
 def test_case7(self):
     self.pwd = pwd_app.change_password("qwerty", "456tyhgrd", "", "")
     self.assertEqual(self.pwd.check_password_validity(), False,
                      "Empty passwords not accetable!")
예제 #9
0
 def test_case1(self):
     self.pwd = pwd_app.change_password("qwerty", "456tyhgrd", "zxcvbnb",
                                        "zxcvbnb")
     self.assertEqual(self.pwd.check_password_validity(), False,
                      "Only alphabets in password are not acceptable!")
예제 #10
0
 def test_case6(self):
     self.pwd = pwd_app.change_password("qwerty", "456tyhgrd", "sswer@#",
                                        "sswer@#")
     self.assertEqual(
         self.pwd.check_password_validity(), False,
         "Special character should not be there in passwords!")
예제 #11
0
 def test_case5(self):
     self.pwd = pwd_app.change_password("qwerty", "456tyhgrd", "abc", "abc")
     self.assertEqual(
         self.pwd.check_password_validity(), False,
         "Passwords of length less than 6 are not acceptable!")
예제 #12
0
 def test_case4(self):
     self.pwd = pwd_app.change_password("qwerty", "456tyhgrd", "abcde234",
                                        "abcde342")
     self.assertEqual(self.pwd.check_password_validity(), False,
                      "The last 2 passwords should match!")
예제 #13
0
 def test_case3(self):
     self.pwd = pwd_app.change_password("qwerty", "456tyhgrd", "abcde2",
                                        "abcde2")
     self.assertEqual(self.pwd.check_password_validity(), False,
                      "Password of length 6 is not acceptable!")
예제 #14
0
 def test_case2(self):
     self.pwd = pwd_app.change_password("qwerty", "456tyhgrd", "1234567",
                                        "1234567")
     self.assertEqual(self.pwd.check_password_validity(), False,
                      "Only digits in password are not acceptable!")