'You will be redirected to the app\'s main page if you land on the
login page when already logged in.'

def test_login_page_redirects_logged_in_user(self):

    self.login(self.example_email('cordelia'))
    response = self.client_get('/login/')
    self.assertEqual(response['Location'], '/')
