def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def stop(self):
        self._patcher.stop()
        self._patcher2.stop()
        self._server_mock = None