def save_results(self, filepath): return Pickler.save_to_file(filepath, self._localize_results())
def load_expected_results(self, filepath: str) -> dict: return Pickler.load_data_from_file(filepath)
def get_results(self) -> dict: return Pickler.to_data(self._localize_results())
def __init__(self, responses: Union[dict, str] = None): self.command_counter = {} if isinstance(responses, str): self.responses = Pickler.load_from_file(responses) elif isinstance(responses, dict): self.responses = responses
def save_responses_to_file(self, filepath): Pickler.save_to_file(filepath, self.responses)
def get_responses(self): return json.dumps(Pickler.from_data(self.responses))