def register_issue(self, issue=None): """Adds an issue to the test's list of issues Creates a new issue object, and associates the test's request and response to it. In addition, adds the issue to the test's list of issues """ if not issue: issue = Issue() issue.request = self.resp.request issue.response = self.resp self.issues.append(issue) return issue