def test_success(self): if not LoginRequest.test_success(self): return False fail_re = re.compile('Failed to log in.') if fail_re.search(self.res_data) is not None: return False username_re = re.compile(self.username) if username_re.search(self.res_data) is None: return False return True
def test_success(self): if not LoginRequest.test_success(self): return False if self.redirected_to != './': return False return True
def test_success(self): if not LoginRequest.test_success(self): return False if self.redirected_to.rstrip("/") != self.base_url.rstrip("/"): return False return True