Skip to content

Commit

Permalink
[#790] pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed May 13, 2014
1 parent ae11ed3 commit 0840aef
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -223,7 +223,6 @@ def teardown_class(cls):
config.clear()
config.update(cls.original_config)


def test_custom_search(self):
helpers.call_action('package_create', name='test_package_a',
custom_text='z')
Expand All @@ -232,18 +231,18 @@ def test_custom_search(self):

response = self.app.get('/dataset')

#change the sort by form to our custom_text ascending
# change the sort by form to our custom_text ascending
response.forms[1].fields['sort'][0].value = 'custom_text asc'
response = response.forms[1].submit()
#check that package_b appears before package a (y < z)
# check that package_b appears before package a (y < z)
nt.assert_less(
response.body.index('test_package_b'),
response.body.index('test_package_a'),
)

response.forms[1].fields['sort'][0].value = 'custom_text desc'
#check that package_a appears before package b (z is first in
#descending order)
# check that package_a appears before package b (z is first in
# descending order)
response = response.forms[1].submit()
nt.assert_less(
response.body.index('test_package_a'),
Expand Down

0 comments on commit 0840aef

Please sign in to comment.