Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
[fix bug 777126] Fixes urlhandling search test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aakash Desai committed Jul 24, 2012
1 parent e297472 commit 8e6c18c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/phonebook/tests/test_search.py
Expand Up @@ -136,14 +136,14 @@ def test_empty_query_search(self):
def test_proper_url_arg_handling(self):
"""Make sure URL arguments are handled correctly"""
# Create a new unvouched user to ensure results show up in search view
user()
user(first_name='Findme', last_name='Ifyoucan')

search_url = reverse('search')
r = self.mozillian_client.get(search_url)
assert not pq(r.content)('.result')

r = self.mozillian_client.get(search_url,
{'q': u'', 'nonvouched_only': 1})
{'q': u'Findme', 'nonvouched_only': 1})

assert pq(r.content)('.result')

Expand Down

0 comments on commit 8e6c18c

Please sign in to comment.