def METHOD_NAME(self):
    output = StringIO()
    console = ConsoleOutput(output, json=True)
    console.msg("foo")
    console.msg_json({"test": 1})
    assert output.getvalue() == '{\n  "test": 1\n}\n'