import pytest
from rest_framework import status
from rest_framework.reverse import reverse
pytestmark = pytest.mark.django_db


def test_all_good(client):
    """Test all good."""
    url = reverse('ping')
    response = client.get(url)
    assert response.status_code == status.HTTP_200_OK
    assert '<status>OK</status>' in str(response.content)
    assert response._headers['content-type'] == ('Content-Type', 'text/xml')

3beaa5c06b49647f247d7bc04760de24c8dd5180
<mask token>

<mask token>


def test_all_good(client):
    """Test all good."""
    url = reverse('ping')
    response = client.get(url)
    assert response.status_code == status.HTTP_200_OK
    assert '<status>OK</status>' in str(response.content)
    assert response._headers['content-type'] == ('Content-Type', 'text/xml')

<mask token>
pytestmark = pytest.mark.django_db


def test_all_good(client):
    """Test all good."""
    url = reverse('ping')
    response = client.get(url)
    assert response.status_code == status.HTTP_200_OK
    assert '<status>OK</status>' in str(response.content)
    assert response._headers['content-type'] == ('Content-Type', 'text/xml')

import pytest
from rest_framework import status
from rest_framework.reverse import reverse
pytestmark = pytest.mark.django_db


def test_all_good(client):
    """Test all good."""
    url = reverse('ping')
    response = client.get(url)
    assert response.status_code == status.HTTP_200_OK
    assert '<status>OK</status>' in str(response.content)
    assert response._headers['content-type'] == ('Content-Type', 'text/xml')
