def METHOD_NAME(self):
    # --json set but --output not set
    out = StringIO()
    call_command('graph_models', all_applications=True, json=True, stdout=out)
    output = out.getvalue()
    assert_looks_like_jsonfile(output)