def METHOD_NAME(self):
    test_issue = _get_issue_instance()
    test_issue_dict = test_issue.as_dict(with_code=False)
    self.assertIsInstance(test_issue_dict, dict)
    self.assertEqual("code.py", test_issue_dict["filename"])
    self.assertEqual("bandit_plugin", test_issue_dict["test_name"])
    self.assertEqual("B999", test_issue_dict["test_id"])
    self.assertEqual("MEDIUM", test_issue_dict["issue_severity"])
    self.assertEqual(
        {
            "id": 605,
            "link": "https://cwe.mitre.org/data/definitions/605.html",
        },
        test_issue_dict["issue_cwe"],
    )
    self.assertEqual("MEDIUM", test_issue_dict["issue_confidence"])
    self.assertEqual("Test issue", test_issue_dict["issue_text"])
    self.assertEqual(1, test_issue_dict["line_number"])
    self.assertEqual([], test_issue_dict["line_range"])
    self.assertEqual(8, test_issue_dict["col_offset"])
    self.assertEqual(16, test_issue_dict["end_col_offset"])