def test_auth_login_post(self):
    fake_form = {'username': 'Fakeusername', 'password': 'Fakepassword'}
    response = self.client.post(url_for('auth.login'), data=fake_form)
    self.assertRedirects(response, url_for('index'))
def test_auth_login_post(self):
    fake_form = {'username': 'Fakeusername', 'password': 'Fakepassword'}
    response = self.client.post(url_for('auth.login'), data=fake_form)
    self.assertRedirects(response, url_for('index'))