def test_next_must_pass(self):
    "\n        Kathy and Tom each have face cards, tom just played and the total is at 30\n\n        Expected: It is now kathy's turn and she must pass\n        "
    fake_redis = fakeredis.FakeRedis()
    game_dict = {'cards': CARDS, 'hands': {'kathy': ['5e1e7e60ab'], 'tom': ['95f92b2f0c']}, 'pegging': {'cards': ['75e734d054', '60575e1068', '1d5eb77128'], 'last_played': 'tom', 'passed': [], 'run': [], 'total': 30}, 'players': {'tom': 0, 'kathy': 0}, 'state': 'PLAY', 'turn': 'tom', '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['turn'] == 'kathy')
    assert (g['pegging']['total'] == 30)
    assert (bev.get_player_action('test', g['turn']) == 'PASS')
Kathy and Tom each have face cards, tom just played and the total is at 30

Expected: It is now kathy's turn and she must pass
def test_next_must_pass(self):
    "\n        Kathy and Tom each have face cards, tom just played and the total is at 30\n\n        Expected: It is now kathy's turn and she must pass\n        "
    fake_redis = fakeredis.FakeRedis()
    game_dict = {'cards': CARDS, 'hands': {'kathy': ['5e1e7e60ab'], 'tom': ['95f92b2f0c']}, 'pegging': {'cards': ['75e734d054', '60575e1068', '1d5eb77128'], 'last_played': 'tom', 'passed': [], 'run': [], 'total': 30}, 'players': {'tom': 0, 'kathy': 0}, 'state': 'PLAY', 'turn': 'tom', '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['turn'] == 'kathy')
    assert (g['pegging']['total'] == 30)
    assert (bev.get_player_action('test', g['turn']) == 'PASS')