def METHOD_NAME(self, get_issue_list, get_code):
    self.manager.metrics.data["_totals"] = {"loc": 1000, "nosec": 50}
    issue_a = _get_issue_instance(severity=bandit.LOW)
    issue_a.fname = "abc.py"
    issue_a.test = "AAAAAAA"
    issue_a.text = "BBBBBBB"
    issue_a.confidence = "CCCCCCC"
    # don't need to test severity, it determines the color which we're
    # testing separately
    issue_b = _get_issue_instance(severity=bandit.MEDIUM)
    issue_c = _get_issue_instance(severity=bandit.HIGH)
    issue_x = _get_issue_instance()
    get_code.return_value = "some code"
    issue_y = _get_issue_instance()
    get_issue_list.return_value = collections.OrderedDict(
        [
            (issue_a, [issue_x, issue_y]),
            (issue_b, [issue_x]),
            (issue_c, [issue_y]),
        ]
    )
    with open(self.tmp_fname, "w") as tmp_file:
        b_html.report(self.manager, tmp_file, bandit.LOW, bandit.LOW)
    with open(self.tmp_fname) as f:
        soup = bs4.BeautifulSoup(f.read(), "html.parser")
        self.assertEqual("1000", soup.find_all("span", id="loc")[0].text)
        self.assertEqual("50", soup.find_all("span", id="nosec")[0].text)
        issue1 = soup.find_all("div", id="issue-0")[0]
        issue2 = soup.find_all("div", id="issue-1")[0]
        issue3 = soup.find_all("div", id="issue-2")[0]
        # make sure the class has been applied properly
        self.assertEqual(
            1, len(issue1.find_all("div", {"class": "issue-sev-low"}))
        )
        self.assertEqual(
            1, len(issue2.find_all("div", {"class": "issue-sev-medium"}))
        )
        self.assertEqual(
            1, len(issue3.find_all("div", {"class": "issue-sev-high"}))
        )
        # issue1 has a candidates section with 2 candidates in it
        self.assertEqual(
            1, len(issue1.find_all("div", {"class": "candidates"}))
        )
        self.assertEqual(
            2, len(issue1.find_all("div", {"class": "candidate"}))
        )
        # issue2 doesn't have candidates
        self.assertEqual(
            0, len(issue2.find_all("div", {"class": "candidates"}))
        )
        self.assertEqual(
            0, len(issue2.find_all("div", {"class": "candidate"}))
        )
        # issue1 doesn't have code issue 2 and 3 do
        self.assertEqual(0, len(issue1.find_all("div", {"class": "code"})))
        self.assertEqual(1, len(issue2.find_all("div", {"class": "code"})))
        self.assertEqual(1, len(issue3.find_all("div", {"class": "code"})))
        # issue2 code and issue1 first candidate have code
        element1 = issue1.find_all("div", {"class": "candidate"})
        self.assertIn("some code", element1[0].text)
        element2 = issue2.find_all("div", {"class": "code"})
        self.assertIn("some code", element2[0].text)
        # make sure correct things are being output in issues
        self.assertIn("AAAAAAA:", issue1.text)
        self.assertIn("BBBBBBB", issue1.text)
        self.assertIn("CCCCCCC", issue1.text)
        self.assertIn("abc.py", issue1.text)
        self.assertIn("Line number: 1", issue1.text)