Browse files

Stop skipping a login/read-only test.

  • Loading branch information...
1 parent 6b88601 commit f2321e078bb49e50de9cc9f2d89e1a147515ab27 James Socol committed Oct 19, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 apps/sumo/tests/test_readonly.py
View
5 apps/sumo/tests/test_readonly.py
@@ -38,10 +38,9 @@ def test_db_error(self):
assert_raises(mysql.OperationalError, Question.objects.create, id=12)
def test_login_error(self):
- # TODO(james): Once we're authenticating in Django we can test this.
- raise SkipTest
# This tries to do a db write.
- r = self.client.get(reverse('users.login'))
+ url = reverse('users.login', locale='en-US')
+ r = self.client.get(url, follow=True)
eq_(r.status_code, 503)
title = pq(r.content)('title').text()
assert title.startswith('Maintenance in progress'), title

0 comments on commit f2321e0

Please sign in to comment.