Ejemplo n.º 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!")		
Ejemplo n.º 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!")
Ejemplo n.º 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!")
Ejemplo n.º 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!")		
Ejemplo n.º 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!")
Ejemplo n.º 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!")		
Ejemplo n.º 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!")		
Ejemplo n.º 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!")
Ejemplo n.º 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!")
Ejemplo n.º 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!")
Ejemplo n.º 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!")
Ejemplo n.º 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!")
Ejemplo n.º 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!")
Ejemplo n.º 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!")