def test_start_with_two_players(self, two_player_game_unstarted):
    fake_redis = fakeredis.FakeRedis()
    fake_redis.set('cheers', json.dumps(two_player_game_unstarted))
    bev.cache = fake_redis
    bev.start_game('cheers')
    g = json.loads(fake_redis.get('cheers'))
    assert (g['state'] == 'DEAL')
    assert (g['hand_size'] == 6)
    assert (g['dealer'] != g['cutter'])
    assert (g['dealer'] != g['first_to_score'])
    assert (g['turn'] == g['dealer'])
    assert (g['winning_score'] == 121)
    assert (not g['jokers'])
def test_start_with_two_players(self, two_player_game_unstarted):
    fake_redis = fakeredis.FakeRedis()
    fake_redis.set('cheers', json.dumps(two_player_game_unstarted))
    bev.cache = fake_redis
    bev.start_game('cheers')
    g = json.loads(fake_redis.get('cheers'))
    assert (g['state'] == 'DEAL')
    assert (g['hand_size'] == 6)
    assert (g['dealer'] != g['cutter'])
    assert (g['dealer'] != g['first_to_score'])
    assert (g['turn'] == g['dealer'])
    assert (g['winning_score'] == 121)
    assert (not g['jokers'])