def test_update_game(self):
     """Update a game in the database."""
     game_id = Game.insert(session, 1, True)
     Game.update(session, game_id, seed=2, active=False)
     game_dict = Game.select(session, game_id)
     assert game_dict == {'game_id': game_id, 'active': False, 'seed': 2}, \
         "Can't update game in database."
 def test_select_game(self):
     """Select a game in the database."""
     game_id = Game.insert(session, 1, True)
     game_dict = Game.select(session, game_id)
     assert game_dict == {'game_id': game_id, 'active': True, 'seed': 1}, \
         "Can't select game from database."