Skip to content

Commit

Permalink
test advanced search
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed May 6, 2015
1 parent 67d7962 commit f22e251
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions voseq/public_interface/tests/test_views.py
Expand Up @@ -116,5 +116,20 @@ def test_autocomplete(self):
content = response.content.decode('utf-8')
self.assertTrue('Melitaea' in content)

def test_advanced_search_gui_form(self):
response = self.client.get('/search/advanced/')
content = response.content.decode('utf-8')
self.assertTrue('Search by querying a single field for any combination of fields' in content)

def test_advanced_search_voucher_objs(self):
response = self.client.get('/search/advanced/?orden=Hymenoptera')
content = response.content.decode('utf-8')
self.assertTrue('Melitaea' in content)

def test_advanced_search_sequence_objs(self):
response = self.client.get('/search/advanced/?labPerson=Niklas')
content = response.content.decode('utf-8')
self.assertTrue('Melitaea' in content)

def tearDown(self):
call_command('clear_index', interactive=False, verbosity=0)

0 comments on commit f22e251

Please sign in to comment.