Skip to content

Commit

Permalink
Stop re-instantiating Client(); Django's TestCase already provide…
Browse files Browse the repository at this point in the history
…s one.
  • Loading branch information
erikrose committed Aug 27, 2010
1 parent c7da7d9 commit 0cc4a80
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions apps/sumo/tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@


class TestHandlers(TestCase):
client = Client()

def test_404_strip_slash(self):
"""Requesting a URL with a trailing slash should remove the slash
and redirect."""
Expand Down
2 changes: 0 additions & 2 deletions apps/sumo/tests/test_locale_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@


class TestLocaleMiddleware(TestCase):
client = Client()

def test_default_redirect(self):
# User wants en-us, we send en-US
response = self.client.get('/search', follow=True,
Expand Down

0 comments on commit 0cc4a80

Please sign in to comment.