MCPcopy Create free account
hub / github.com/realpython/discover-flask / test_login_page_loads

Method test_login_page_loads

tests/test_users.py:58–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56
57 # Ensure that the login page loads correctly
58 def test_login_page_loads(self):
59 response = self.client.get('/login')
60 self.assertIn(b'Please login', response.data)
61
62 # Ensure login behaves correctly with correct credentials
63 def test_correct_login(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected