def test_load(self): self.write_run_file({"result": "success", "runtime": "23.42", "message": "-arbitrary text-"}) execution = MineAndDetectExecution(self.detector, self.version, self.findings_path, AllFindings(self.detector)) assert execution.is_success() assert_equals(execution.runtime, "23.42") assert_equals(execution.message, "-arbitrary text-")