9 lines
244 B
Python
9 lines
244 B
Python
import json
|
|
from django.urls import reverse
|
|
|
|
def test_ping(client):
|
|
url = reverse("ping")
|
|
response = client.get(url)
|
|
content = json.loads(response.content)
|
|
assert response.status_code == 200
|
|
assert content["ping"] == "pong!" |