"""
requests = []
responses = []
+ _instance = None
+
+ @classmethod
+ def instance(cls):
+ if not cls._instance:
+ cls._instance = cls()
+ return cls._instance
def add_response(self, response_obj):
self.responses.append(response_obj)
def clear(self):
del self.requests[:]
del self.responses[:]
-
-history = History()