async def METHOD_NAME(client_factory):
    """More or less the same as the regression test version"""
    client1, _ = await client_factory.login("test")
    client2, _ = await client_factory.login("test2")
    await client1.read_until_command("game_info")
    await client2.read_until_command("game_info")
    ratings = await client1.get_player_ratings("test", "test2")
    await simulate_game(client1, client2, results=[
        [2, "defeat -10"],
        [1, "victory 10"]
    ])
    for client in (client1, client2):
        await client.send_gpg_command("GameEnded")
    # Check that the ratings were updated
    new_ratings = await client1.get_player_ratings("test", "test2")
    # Now disconnect both players
    for client in (client1, client2):
        await client.send_gpg_command("GameState", "Ended")
    assert ratings["test"][0] < new_ratings["test"][0]
    assert ratings["test2"][0] > new_ratings["test2"][0]