@pytest.mark.django_db
def test_admin_not_logged_in(client):
 response = client.get(ADMIN_URL)
 assert (response.status_code == 403)

@ pytest . mark . django_db def test_admin_not_logged_in ( client ) : response = client . get ( ADMIN_URL ) assert ( response . status_code == 403 )
checks logged-out users cannot access the admin site .