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