def test_cut(self, two_player_game_fully_dealt):
    fake_redis = fakeredis.FakeRedis()
    fake_redis.set('homemovies', json.dumps(two_player_game_fully_dealt))
    bev.cache = fake_redis
    bev.cut_deck('homemovies')
    g = json.loads(fake_redis.get('homemovies'))
    assert (g['state'] == 'PLAY')
    assert g['cut_card']
    assert (g['turn'] == g['first_to_score'])
    for player in g['players'].keys():
        assert (g['cut_card'] not in g['hands'][player])
def test_cut(self, two_player_game_fully_dealt):
    fake_redis = fakeredis.FakeRedis()
    fake_redis.set('homemovies', json.dumps(two_player_game_fully_dealt))
    bev.cache = fake_redis
    bev.cut_deck('homemovies')
    g = json.loads(fake_redis.get('homemovies'))
    assert (g['state'] == 'PLAY')
    assert g['cut_card']
    assert (g['turn'] == g['first_to_score'])
    for player in g['players'].keys():
        assert (g['cut_card'] not in g['hands'][player])