Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment