Skip to content

Commit

Permalink
Fixed a broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Feb 18, 2016
1 parent f81dd0e commit cc0dcb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/multidomain/test_middlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def test_event_on_custom_domain_only_with_wrong_organizer(env, client):
date_from=now()
)
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
Expand Down

0 comments on commit cc0dcb8

Please sign in to comment.