compare instance to basestring instead of (str, unicode)
This commit is contained in:
parent
3ced2bee38
commit
8afff42465
9 changed files with 13 additions and 13 deletions
|
|
@ -42,8 +42,8 @@ class BNPorc(BaseBrowser):
|
|||
return not self.is_on_page(pages.LoginPage) or self.is_logging
|
||||
|
||||
def login(self):
|
||||
assert isinstance(self.username, (str,unicode))
|
||||
assert isinstance(self.password, (str,unicode))
|
||||
assert isinstance(self.username, basestring)
|
||||
assert isinstance(self.password, basestring)
|
||||
assert self.password.isdigit()
|
||||
|
||||
if not self.is_on_page(pages.LoginPage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue