This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def login_first(test): | |
"""Decorator offering convenience login for tests that require it.""" | |
def _login(self): | |
self.client.login( | |
username='testusername', | |
password='testpassword') | |
return test(self) | |
return _login |
NewerOlder