def METHOD_NAME(self):
    class MyEngine(stdpopsim.Engine):
        id = "test-engine"
        name = "test"
        citations = []
    engine1 = MyEngine()
    stdpopsim.register_engine(engine1)
    engine2 = stdpopsim.get_engine(engine1.id)
    assert engine1 == engine2
    # remove engine to avoid possible problems with other tests
    del stdpopsim.engines._registered_engines[engine1.id]