def test_kathy_hit_thirtyone_still_has_cards(self):
    '\n        Kathy just hit 31, and still has cards\n\n        Expected: no new points for kathy, and its her turn with a fresh pegging area\n        '
    fake_redis = fakeredis.FakeRedis()
    game_dict = {'cards': CARDS, 'hands': {'kathy': ['5e1e7e60ab'], 'tom': ['95f92b2f0c']}, 'pegging': {'cards': ['75e734d054', '60575e1068', '1d5eb77128'], 'last_played': 'kathy', 'passed': [], 'run': [], 'total': 31}, 'players': {'tom': 0, 'kathy': 2}, 'turn': 'kathy', 'winning_score': 121}
    fake_redis.set('test', json.dumps(game_dict))
    bev.cache = fake_redis
    bev.next_player('test')
    g = json.loads(fake_redis.get('test'))
    assert (g['players']['kathy'] == 2)
    assert (g['turn'] == 'tom')
    assert (g['pegging']['total'] == 0)
Kathy just hit 31, and still has cards

Expected: no new points for kathy, and its her turn with a fresh pegging area
def test_kathy_hit_thirtyone_still_has_cards(self):
    '\n        Kathy just hit 31, and still has cards\n\n        Expected: no new points for kathy, and its her turn with a fresh pegging area\n        '
    fake_redis = fakeredis.FakeRedis()
    game_dict = {'cards': CARDS, 'hands': {'kathy': ['5e1e7e60ab'], 'tom': ['95f92b2f0c']}, 'pegging': {'cards': ['75e734d054', '60575e1068', '1d5eb77128'], 'last_played': 'kathy', 'passed': [], 'run': [], 'total': 31}, 'players': {'tom': 0, 'kathy': 2}, 'turn': 'kathy', 'winning_score': 121}
    fake_redis.set('test', json.dumps(game_dict))
    bev.cache = fake_redis
    bev.next_player('test')
    g = json.loads(fake_redis.get('test'))
    assert (g['players']['kathy'] == 2)
    assert (g['turn'] == 'tom')
    assert (g['pegging']['total'] == 0)