'Login to the Journalist Interface as an admin user with the
Werkzeug client.
Args:
token (str): The TOTP token to attempt login with. Defaults
to the correct token for the current time window.'

def _login_admin(self, token=None):

    if (token is None):
        token = self.admin.totp.now()
    self.client.post(url_for('login'), data=dict(username=self.admin.username, password=self.admin_pw, token=token))
