correctly detect when user is logged even if the confirm page is unknown
This commit is contained in:
parent
aeacbe45a9
commit
a9398b515a
6 changed files with 8 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ class LCLBrowser(BaseBrowser):
|
|||
BaseBrowser.__init__(self, *args, **kwargs)
|
||||
|
||||
def is_logged(self):
|
||||
return self.page and not self.is_on_page(LoginPage)
|
||||
return not self.is_on_page(LoginPage)
|
||||
|
||||
def login(self):
|
||||
assert isinstance(self.username, basestring)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue