Revert "Fixed a somehow broken test"

This reverts commit 9cc53c19b4.
This commit is contained in:
Raphael Michel
2016-09-26 18:43:28 +02:00
parent 006ade1414
commit 41b21b7b96

View File

@@ -1,6 +1,5 @@
import pytest
from django.conf import settings
from django.http import Http404
from django.test.utils import override_settings
from django.utils.timezone import now
@@ -65,8 +64,8 @@ def test_event_on_custom_domain_only_with_wrong_organizer(env, client):
date_from=now(), live=True
)
KnownDomain.objects.create(domainname='foobar', organizer=env[0])
with pytest.raises(Http404):
client.get('/dummy/1234/', HTTP_HOST='foobar')
r = client.get('/dummy/1234/', HTTP_HOST='foobar')
assert r.status_code == 404
@pytest.mark.django_db