Permalink
Browse files

refactoring assert.true

  • Loading branch information...
1 parent 17977a4 commit 3144b5f40d7a809c020b5249849e5f25e1e913ac alintrif committed Jul 10, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 tests/test_search.py
View
10 tests/test_search.py
@@ -237,8 +237,8 @@ def test_copies_slider_filters_results(self, mozwebqa):
initial_library_count = searchpage_obj.library_count_label
searchpage_obj.move_copies_slider(1)
- Assert.true(initial_addon_count > searchpage_obj.addons_count_label)
- Assert.true(initial_library_count > searchpage_obj.library_count_label)
+ Assert.greater(initial_addon_count, searchpage_obj.addons_count_label)
+ Assert.greater(initial_library_count, searchpage_obj.library_count_label)
@pytest.mark.native
@pytest.mark.nondestructive
@@ -252,7 +252,7 @@ def test_used_packages_slider_filters_results(self, mozwebqa):
initial_library_count = searchpage_obj.library_count_label
searchpage_obj.move_used_packages_slider(10)
- Assert.true(initial_library_count > searchpage_obj.library_count_label)
+ Assert.greater(initial_library_count, searchpage_obj.library_count_label)
@pytest.mark.native
@pytest.mark.nondestructive
@@ -266,8 +266,8 @@ def test_activity_slider_filters_results(self, mozwebqa):
initial_library_count = searchpage_obj.library_count_label
searchpage_obj.move_activity_slider(1)
- Assert.true(initial_addon_count > searchpage_obj.addons_count_label)
- Assert.true(initial_library_count > searchpage_obj.library_count_label)
+ Assert.greater(initial_addon_count, searchpage_obj.addons_count_label)
+ Assert.greater(initial_library_count, searchpage_obj.library_count_label)
@pytest.mark.nondestructive
@pytest.mark.xfail(reason="Bug 738469 - Default sort order says 'Activity', but doesn't actually match 'Activity' search-sort order/results")

0 comments on commit 3144b5f

Please sign in to comment.