{
  "errors": [],
  "generated_at": "2026-07-27T18:15:44Z",
  "metrics": {
    "./printer.py": {
      "CONFIDENCE.HIGH": 0,
      "CONFIDENCE.LOW": 0,
      "CONFIDENCE.MEDIUM": 0,
      "CONFIDENCE.UNDEFINED": 0,
      "SEVERITY.HIGH": 0,
      "SEVERITY.LOW": 0,
      "SEVERITY.MEDIUM": 0,
      "SEVERITY.UNDEFINED": 0,
      "loc": 224,
      "nosec": 0,
      "skipped_tests": 0
    },
    "./server.py": {
      "CONFIDENCE.HIGH": 0,
      "CONFIDENCE.LOW": 0,
      "CONFIDENCE.MEDIUM": 0,
      "CONFIDENCE.UNDEFINED": 0,
      "SEVERITY.HIGH": 0,
      "SEVERITY.LOW": 0,
      "SEVERITY.MEDIUM": 0,
      "SEVERITY.UNDEFINED": 0,
      "loc": 159,
      "nosec": 0,
      "skipped_tests": 0
    },
    "./test_printer.py": {
      "CONFIDENCE.HIGH": 39,
      "CONFIDENCE.LOW": 0,
      "CONFIDENCE.MEDIUM": 0,
      "CONFIDENCE.UNDEFINED": 0,
      "SEVERITY.HIGH": 0,
      "SEVERITY.LOW": 39,
      "SEVERITY.MEDIUM": 0,
      "SEVERITY.UNDEFINED": 0,
      "loc": 137,
      "nosec": 0,
      "skipped_tests": 0
    },
    "_totals": {
      "CONFIDENCE.HIGH": 39,
      "CONFIDENCE.LOW": 0,
      "CONFIDENCE.MEDIUM": 0,
      "CONFIDENCE.UNDEFINED": 0,
      "SEVERITY.HIGH": 0,
      "SEVERITY.LOW": 39,
      "SEVERITY.MEDIUM": 0,
      "SEVERITY.UNDEFINED": 0,
      "loc": 520,
      "nosec": 0,
      "skipped_tests": 0
    }
  },
  "results": [
    {
      "code": "36     r = p.command_echo('ECHO DELIMITER20687')\n37     assert r == '@PJL ECHO DELIMITER20687\\x1b'\n38     \n",
      "col_offset": 4,
      "end_col_offset": 46,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 37,
      "line_range": [
        37
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "43     r = p.command_fsdownload(c.decode('UTF-8'))\n44     assert r == ''\n45 \n",
      "col_offset": 4,
      "end_col_offset": 18,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 44,
      "line_range": [
        44
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "46     r = p.command_fsquery('@PJL FSQUERY NAME=\"0:/test2.txt\"')\n47     assert r == '@PJL FSQUERY NAME=\"0:/test2.txt\" TYPE=FILE SIZE=52'\n48 \n",
      "col_offset": 4,
      "end_col_offset": 68,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 47,
      "line_range": [
        47
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "50     r = p.command_fsdownload(c.decode('UTF-8'))\n51     assert r == ''\n52 \n",
      "col_offset": 4,
      "end_col_offset": 18,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 51,
      "line_range": [
        51
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "53     r = p.command_fsquery('@PJL FSQUERY NAME=\"0:/test2.txt\"')\n54     assert r == '@PJL FSQUERY NAME=\"0:/test2.txt\" TYPE=FILE SIZE=77'\n55 \n",
      "col_offset": 4,
      "end_col_offset": 68,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 54,
      "line_range": [
        54
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "59     r = p.command_fsquery('@PJL FSQUERY NAME=\"0:/webServer\"')\n60     assert r == '@PJL FSQUERY NAME=\"0:/webServer\" TYPE=DIR'\n61 \n",
      "col_offset": 4,
      "end_col_offset": 59,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 60,
      "line_range": [
        60
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "65     r = p.command_fsmkdir('@PJL FSMKDIR NAME=\"0:/testdir\"')\n66     assert r == ''\n67     assert p.does_path_exist(\"/testdir\") == True\n",
      "col_offset": 4,
      "end_col_offset": 18,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 66,
      "line_range": [
        66
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "66     assert r == ''\n67     assert p.does_path_exist(\"/testdir\") == True\n68 \n",
      "col_offset": 4,
      "end_col_offset": 48,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 67,
      "line_range": [
        67
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "72     r = p.command_fsupload('@PJL FSUPLOAD NAME=\"0:/none\"')\n73     assert r == '@PJL FSUPLOAD NAME=\"0:/none\"\\r\\nFILEERROR=3\\r\\n'\n74 \n",
      "col_offset": 4,
      "end_col_offset": 65,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 73,
      "line_range": [
        73
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "78     r = p.command_fsupload('@PJL FSUPLOAD NAME=\"0:/webServer/home/device.html\"')\n79     assert r.encode('UTF-8') == b'@PJL FSUPLOAD FORMAT:BINARY NAME=\"0:/webServer/home/device.html\" OFFSET=0 SIZE=165\\r\\n<html><head>\\n<meta http-equiv=\"Refresh\" content=\"0; URL=this.LCDispatcher?dispatch=html&cat=1&pos=0\">\\n<title>Printer Content</title></head>\\n<body>\\n</body></html>'\n80 \n",
      "col_offset": 4,
      "end_col_offset": 286,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 79,
      "line_range": [
        79
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "84     params = p.get_parameters('@PJL RDYMSG DISPLAY = \"rdymsg\"')\n85     assert params['DISPLAY'] == \"rdymsg\"\n86 \n",
      "col_offset": 4,
      "end_col_offset": 40,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 85,
      "line_range": [
        85
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "87     params = p.get_parameters('@PJL COMMAND A=1 B=2')\n88     assert params['A'] == \"1\"\n89     assert params['B'] == \"2\"\n",
      "col_offset": 4,
      "end_col_offset": 29,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 88,
      "line_range": [
        88
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "88     assert params['A'] == \"1\"\n89     assert params['B'] == \"2\"\n90 \n",
      "col_offset": 4,
      "end_col_offset": 29,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 89,
      "line_range": [
        89
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "91     params = p.get_parameters('@PJL COMMAND A=\"value\" B=2')\n92     assert params['A'] == '\"value\"'\n93     assert params['B'] == \"2\"\n",
      "col_offset": 4,
      "end_col_offset": 35,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 92,
      "line_range": [
        92
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "92     assert params['A'] == '\"value\"'\n93     assert params['B'] == \"2\"\n94 \n",
      "col_offset": 4,
      "end_col_offset": 29,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 93,
      "line_range": [
        93
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "95     params = p.get_parameters('@PJL COMMAND A = 1 B = 2')\n96     assert params['A'] == \"1\"\n97     assert params['B'] == \"2\"\n",
      "col_offset": 4,
      "end_col_offset": 29,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 96,
      "line_range": [
        96
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "96     assert params['A'] == \"1\"\n97     assert params['B'] == \"2\"\n98 \n",
      "col_offset": 4,
      "end_col_offset": 29,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 97,
      "line_range": [
        97
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "99     params = p.get_parameters('@PJL COMMAND A = 1     B = 2')\n100     assert params['A'] == \"1\"\n101     assert params['B'] == \"2\"\n",
      "col_offset": 4,
      "end_col_offset": 29,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 100,
      "line_range": [
        100
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "100     assert params['A'] == \"1\"\n101     assert params['B'] == \"2\"\n102 \n",
      "col_offset": 4,
      "end_col_offset": 29,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 101,
      "line_range": [
        101
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "103     params = p.get_parameters('@PJL COMMAND A=45 B=\"0:/test.txt\"\\r\\nheres a bunch of other data')\n104     assert params['A'] == \"45\"\n105     assert params['B'] == '\"0:/test.txt\"'\n",
      "col_offset": 4,
      "end_col_offset": 30,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 104,
      "line_range": [
        104
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "104     assert params['A'] == \"45\"\n105     assert params['B'] == '\"0:/test.txt\"'\n106 \n",
      "col_offset": 4,
      "end_col_offset": 41,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 105,
      "line_range": [
        105
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "110     r = p.command_info_id(\"\")\n111     assert r == '@PJL INFO ID\\r\\nhp LaserJet 4200\\r\\n\\x1b'\n112 \n",
      "col_offset": 4,
      "end_col_offset": 58,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 111,
      "line_range": [
        111
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "117     r2 = p2.command_info_id(\"\")\n118     assert r2 == '@PJL INFO ID\\r\\n' + printer_id + '\\r\\n\\x1b'\n119     \n",
      "col_offset": 4,
      "end_col_offset": 61,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 118,
      "line_range": [
        118
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "123     r = p.command_info_status(\"\")\n124     assert r == '@PJL INFO STATUS\\r\\nCODE=10001\\r\\nDISPLAY=\"Ready\"\\r\\nONLINE=True'\n125     \n",
      "col_offset": 4,
      "end_col_offset": 82,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 124,
      "line_range": [
        124
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "129     r = p.command_info_status(\"\")\n130     assert r == '@PJL INFO STATUS\\r\\nCODE=140\\r\\nDISPLAY=\"testing\"\\r\\nONLINE=True'\n131     \n",
      "col_offset": 4,
      "end_col_offset": 82,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 130,
      "line_range": [
        130
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "139     p.postscript_data += t\n140     assert p.postscript_data == t\n141 \n",
      "col_offset": 4,
      "end_col_offset": 33,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 140,
      "line_range": [
        140
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "142     p.save_postscript()\n143     assert p.postscript_data == ''\n144     assert p.receiving_postscript == False\n",
      "col_offset": 4,
      "end_col_offset": 34,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 143,
      "line_range": [
        143
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "143     assert p.postscript_data == ''\n144     assert p.receiving_postscript == False\n145 \n",
      "col_offset": 4,
      "end_col_offset": 42,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 144,
      "line_range": [
        144
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "148     a = sorted(files_list, reverse=True)[0]\n149     assert os.path.isfile(a) == True\n150 \n",
      "col_offset": 4,
      "end_col_offset": 36,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 149,
      "line_range": [
        149
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "153         contents = f.read()\n154     assert contents == t\n155 \n",
      "col_offset": 4,
      "end_col_offset": 24,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 154,
      "line_range": [
        154
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "160     p.append_raw_print_job(t)\n161     assert p.current_raw_print_job == t\n162     assert p.printing_raw_job == True\n",
      "col_offset": 4,
      "end_col_offset": 39,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 161,
      "line_range": [
        161
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "161     assert p.current_raw_print_job == t\n162     assert p.printing_raw_job == True\n163     p.save_raw_print_job()\n",
      "col_offset": 4,
      "end_col_offset": 37,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 162,
      "line_range": [
        162
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "163     p.save_raw_print_job()\n164     assert p.printing_raw_job == False\n165     assert p.current_raw_print_job == ''\n",
      "col_offset": 4,
      "end_col_offset": 38,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 164,
      "line_range": [
        164
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "164     assert p.printing_raw_job == False\n165     assert p.current_raw_print_job == ''\n166 \n",
      "col_offset": 4,
      "end_col_offset": 40,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 165,
      "line_range": [
        165
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "168     a = sorted(files_list, reverse=True)[0]\n169     assert os.path.isfile(a) == True\n170 \n",
      "col_offset": 4,
      "end_col_offset": 36,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 169,
      "line_range": [
        169
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "173         contents = f.read()\n174     assert contents == t\n175 \n",
      "col_offset": 4,
      "end_col_offset": 24,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 174,
      "line_range": [
        174
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "179     r = p.command_rdymsg('@PJL RDYMSG DISPLAY=\"hello\"')\n180     assert p.ready_msg == 'hello'\n181     assert r == ''\n",
      "col_offset": 4,
      "end_col_offset": 33,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 180,
      "line_range": [
        180
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "180     assert p.ready_msg == 'hello'\n181     assert r == ''\n182 \n",
      "col_offset": 4,
      "end_col_offset": 18,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 181,
      "line_range": [
        181
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    },
    {
      "code": "186     r = p.command_ustatusoff(\"\")\n187     assert r == ''\n",
      "col_offset": 4,
      "end_col_offset": 18,
      "filename": "./test_printer.py",
      "issue_confidence": "HIGH",
      "issue_cwe": {
        "id": 703,
        "link": "https://cwe.mitre.org/data/definitions/703.html"
      },
      "issue_severity": "LOW",
      "issue_text": "Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.",
      "line_number": 187,
      "line_range": [
        187
      ],
      "more_info": "https://bandit.readthedocs.io/en/1.9.4/plugins/b101_assert_used.html",
      "test_id": "B101",
      "test_name": "assert_used"
    }
  ]
}