def METHOD_NAME(self, challenge_type):
    server = self.mgr.run(port=0, challenge_type=challenge_type)
    port = server.getsocknames()[0][1]
    assert self.mgr.running() == {port: server}
    self.mgr.stop(port=port)
    assert self.mgr.running() == {}