Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
bug 712387: Tweak the HTML5 landing page test to account for waffle s…
Browse files Browse the repository at this point in the history
…witch
  • Loading branch information
lmorchard committed Feb 17, 2012
1 parent afbd384 commit ca40d81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/landing/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ def test_learn_html(self):
def test_learn_html5(self):
url = reverse('landing.views.learn_html5')
r = self.client.get(url, follow=True)
eq_(404, r.status_code)
s = Switch.objects.create(name='html5_landing', active=True)
s.save()
r = self.client.get(url, follow=True)
eq_(200, r.status_code)
s.delete()

def test_learn_css(self):
url = reverse('landing.views.learn_css')
Expand Down

0 comments on commit ca40d81

Please sign in to comment.