human
Complete the below
@pytest.mark.gen_test
def test_login_strip(app):

    ''''Test that login form doesn\'t strip whitespace from passwords'
    '''

Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    form_data = {'username': 'spiff', 'password': '    space    man    '}
    base_url = public_url(app)
    called_with = []
    @gen.coroutine
    def mock_authenticate(handler, data):
        called_with.append(data)
    with mock.patch.object(app.authenticator, 'authenticate', mock_authenticate):
        (yield async_requests.post((base_url + 'hub/login'), data=form_data, allow_redirects=False))
    assert (called_with == [form_data])