Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
refactoring assert.true
Browse files Browse the repository at this point in the history
  • Loading branch information
alintrif committed Jul 10, 2012
1 parent 17977a4 commit 3144b5f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_search.py
Expand Up @@ -237,8 +237,8 @@ def test_copies_slider_filters_results(self, mozwebqa):
initial_library_count = searchpage_obj.library_count_label initial_library_count = searchpage_obj.library_count_label
searchpage_obj.move_copies_slider(1) searchpage_obj.move_copies_slider(1)


Assert.true(initial_addon_count > searchpage_obj.addons_count_label) Assert.greater(initial_addon_count, searchpage_obj.addons_count_label)
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.native
@pytest.mark.nondestructive @pytest.mark.nondestructive
Expand All @@ -252,7 +252,7 @@ def test_used_packages_slider_filters_results(self, mozwebqa):
initial_library_count = searchpage_obj.library_count_label initial_library_count = searchpage_obj.library_count_label
searchpage_obj.move_used_packages_slider(10) 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.native
@pytest.mark.nondestructive @pytest.mark.nondestructive
Expand All @@ -266,8 +266,8 @@ def test_activity_slider_filters_results(self, mozwebqa):
initial_library_count = searchpage_obj.library_count_label initial_library_count = searchpage_obj.library_count_label
searchpage_obj.move_activity_slider(1) searchpage_obj.move_activity_slider(1)


Assert.true(initial_addon_count > searchpage_obj.addons_count_label) Assert.greater(initial_addon_count, searchpage_obj.addons_count_label)
Assert.true(initial_library_count > searchpage_obj.library_count_label) Assert.greater(initial_library_count, searchpage_obj.library_count_label)


@pytest.mark.nondestructive @pytest.mark.nondestructive
@pytest.mark.xfail(reason="Bug 738469 - Default sort order says 'Activity', but doesn't actually match 'Activity' search-sort order/results") @pytest.mark.xfail(reason="Bug 738469 - Default sort order says 'Activity', but doesn't actually match 'Activity' search-sort order/results")
Expand Down

0 comments on commit 3144b5f

Please sign in to comment.