def test_everyone_else_has_passed_and_tom_can_play_again_this_round(self):
    "\n        Tom has an Ace, kathy just passed and the total is at 30\n\n        Expected: It is now Tom's turn to play, he does not receive a point for go\n        "
    fake_redis = fakeredis.FakeRedis()
    game_dict = {'cards': CARDS, 'hands': {'kathy': ['5e1e7e60ab'], 'tom': ['EXAMPLE_KEY']}, 'pegging': {'cards': ['75e734d054', '60575e1068', '1d5eb77128'], 'last_played': 'tom', 'passed': ['kathy'], 'run': [], 'total': 30}, 'players': {'tom': 0, 'kathy': 0}, 'state': 'PLAY', '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']['tom'] == 0)
    assert (g['turn'] == 'tom')
    assert (g['pegging']['total'] == 30)
    assert (bev.get_player_action('test', g['turn']) == 'PLAY')
Tom has an Ace, kathy just passed and the total is at 30

Expected: It is now Tom's turn to play, he does not receive a point for go
def test_everyone_else_has_passed_and_tom_can_play_again_this_round(self):
    "\n        Tom has an Ace, kathy just passed and the total is at 30\n\n        Expected: It is now Tom's turn to play, he does not receive a point for go\n        "
    fake_redis = fakeredis.FakeRedis()
    game_dict = {'cards': CARDS, 'hands': {'kathy': ['5e1e7e60ab'], 'tom': ['EXAMPLE_KEY']}, 'pegging': {'cards': ['75e734d054', '60575e1068', '1d5eb77128'], 'last_played': 'tom', 'passed': ['kathy'], 'run': [], 'total': 30}, 'players': {'tom': 0, 'kathy': 0}, 'state': 'PLAY', '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']['tom'] == 0)
    assert (g['turn'] == 'tom')
    assert (g['pegging']['total'] == 30)
    assert (bev.get_player_action('test', g['turn']) == 'PLAY')