def test_entity_manager_checking(self): id_doublon_detected = False try: EntityManager.check_all() except Exception: id_doublon_detected = True if not id_doublon_detected: raise "Entity manager has missed an id doublon" GameState.set_value("entities.1.id", 1) EntityManager.check_all()