def test_deal_unique_cards(self, three_player_game_unstarted):
    fake_redis = fakeredis.FakeRedis()
    fake_redis.set('cheers', json.dumps(three_player_game_unstarted))
    bev.cache = fake_redis
    bev.start_game('cheers')
    bev.deal_hands('cheers')
    g = json.loads(fake_redis.get('cheers'))
    assert (g['state'] == 'DISCARD')
    for player in three_player_game_unstarted['players'].keys():
        assert (player in g['hands'].keys())
        assert (len(g['hands'][player]) == g['hand_size'])
def test_deal_unique_cards(self, three_player_game_unstarted):
    fake_redis = fakeredis.FakeRedis()
    fake_redis.set('cheers', json.dumps(three_player_game_unstarted))
    bev.cache = fake_redis
    bev.start_game('cheers')
    bev.deal_hands('cheers')
    g = json.loads(fake_redis.get('cheers'))
    assert (g['state'] == 'DISCARD')
    for player in three_player_game_unstarted['players'].keys():
        assert (player in g['hands'].keys())
        assert (len(g['hands'][player]) == g['hand_size'])