@pytest.mark.django_db
def test_supports_pretty_printing_by_request(client):
    response = client.get(url_string(query='{test}', pretty='1'))
    assert (response.status_code == 200)
    assert (response['Content-Type'].split(';')[0] == 'application/json')
    assert (response.content.decode() == '{\n  "data": {\n    "test": "Hello World"\n  }\n}')
@pytest.mark.django_db
def test_supports_pretty_printing_by_request(client):
    response = client.get(url_string(query='{test}', pretty='1'))
    assert (response.status_code == 200)
    assert (response['Content-Type'].split(';')[0] == 'application/json')
    assert (response.content.decode() == '{\n  "data": {\n    "test": "Hello World"\n  }\n}')