<commit_before>import pytest

from .. import views

pytestmark = pytest.mark.django_db()


def test_index_returns_ok(rf):
    request = rf.get('/')
    response = views.index(request)
    assert response.status_code == 200
<commit_msg>Also assert the content type of the response.<commit_after>import pytest

from .. import views

pytestmark = pytest.mark.django_db()


def test_index_returns_ok(rf):
    request = rf.get('/')
    response = views.index(request)
    assert response.status_code == 200
    assert response['Content-Type'] == 'text/xml'

{'fraction_non_alphanumeric': 0.11775362318840579, 'fraction_numerical': 0.010869565217391304, 'mean_word_length': 4.073394495412844, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2347426', 'n_tokens_mistral': 184, 'n_tokens_neox': 180, 'n_words': 42}