'Test that journalists can login after resetting their HOTP 2fa'

def test_login_after_regenerate_hotp(self):

    self.journalist_app.post('/account/reset-2fa-hotp', data=dict(otp_secret=123456))
    resp = self.journalist_app.post('/account/2fa', data=dict(token=self.user.hotp))
    self.assertEqual(resp.status_code, 302)
    self.journalist_app.get('/logout')
    resp = self.journalist_app.post('/login', data=dict(username=self.user.username, password=self.user_pw, token=self.user.hotp, follow_redirects=True))
    self.assertEqual(resp.status_code, 302)
