Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_login(self):
- tester = app.test_client(self)
- response = tester.post('/login', data=dict(username="test",
- password="test"),
- follow_redirects=True)
- self.assertIn(b'Welcome to Website', response.data)
Add Comment
Please, Sign In to add comment