def test_login_right_credentials():
    auth, app, user = _get_flask_app()
    client = app.test_client()

    data = {
        'login': user.login,
        'password': 'foobar',
        '_csrf_token': auth.get_csrf_token(),
    }
    r = client.post(auth.url_sign_in, data=data)
    assert r.status == '303 SEE OTHER'
    assert auth.session in auth.session_key
dataset/ETHPy150Open jpscaletti/authcode/tests/test_views.py/test_login_right_credentials/swapped operands of `in`