def test_dao_create_and_find_players(mongo_database):
    player = Player()
    player_dao = PlayerDao(mongo_database)
    player_dao.create(player)
    player_id = player_dao.create(player)
    loaded_players = player_dao.find_all()
    assert (len(loaded_players) > 1)
    assert len([player for player in loaded_players if (player_id == str(player['_id']))])
def test_dao_create_and_find_players(mongo_database):
    player = Player()
    player_dao = PlayerDao(mongo_database)
    player_dao.create(player)
    player_id = player_dao.create(player)
    loaded_players = player_dao.find_all()
    assert (len(loaded_players) > 1)
    assert len([player for player in loaded_players if (player_id == str(player['_id']))])