Ejemplo n.º 1
0
 def test_validate_login_access_True(self):
     user_test = User("Jhonny", "Page", "Employee", "Jonny", "Control123")
     user_name = "Pedro"
     password = "******"
     self.assertTrue(user_test.login_user(user_name, password))
Ejemplo n.º 2
0
    def login_init(self, user_name):

        if User.search_user(user_name):
            return True
        else:
            print "The user or password is invalid"