def METHOD_NAME(self):
    output = StringIO()
    console = ConsoleOutput(output, json=True)
    test_list = ["foo", "bar"]
    console.msg_json(test_list)
    assert output.getvalue() == '[\n  "foo",\n  "bar"\n]\n'