def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def stop(self):
        self._patcher.stop()
        self._patcher2.stop()
        self._server_mock = None