def test_pwd_correct(self): # 用户名正确,密码错误 login(self.driver, password(2, 0), password(2, 1)) self.driver.implicitly_wait(1) self.curl = self.driver.current_url self.assertEqual(self.base_url, self.curl, msg='you are right')
def test_pwd_null(self): # 用户名和密码正确 login(self.driver, password(3, 0), password(3, 1)) self.driver.implicitly_wait(1) self.curl = self.driver.current_url self.assertEqual(self.base_url, self.curl, msg='you are right')
def test_username_error(self): # 用户名错误,密码正确 login(self.driver, password(5, 0), password(5, 1)) self.driver.implicitly_wait(1) self.curl = self.driver.current_url self.assertEqual(self.base_url, self.curl, msg='you are right')