Example #1
0
 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
Example #2
0
 def test_success(self):
     if not LoginRequest.test_success(self):
         return False
     if self.redirected_to != './':
         return False
     return True
Example #3
0
 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
Example #4
0
 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
Example #5
0
 def test_success(self):
     if not LoginRequest.test_success(self):
         return False
     if self.redirected_to != './':
         return False
     return True