============================= test session starts ==============================
platform win32 -- Python 2.6.6 -- pytest-2.1.3
collecting ... collected 1 items
test_details_page.py F
=================================== FAILURES ===================================
___ TestDetails.test_addon_information_in_flyout_matches_to_its_details_page ___
self = <tests.desktop.test_details_page.TestDetails instance at 0x02A45378>
mozwebqa = <mozwebqa.mozwebqa.TestSetup instance at 0x02AA3968>
@pytest.mark.nondestructive
@pytest.mark.native
def test_addon_information_in_flyout_matches_to_its_details_page(self, mozwebqa):
"""
Test for Litmus 25816.
https://litmus.mozilla.org/show_test.cgi?id=25816
"""
home = Home(mozwebqa)
first_addon = home.featured_extensions[0]
expected_star_rating = first_addon.star_rating
expected_total_review_count = first_addon.total_review_count
expected_summary = first_addon.summary
expected_author_names = first_addon.author_name
expected_number_of_users = first_addon.number_of_users
details_page = first_addon.click_on_addon()
Assert.equal(details_page.rating, expected_star_rating)
Assert.equal(details_page.total_review_count, expected_total_review_count)
> Assert.contains(details_page.summary, expected_summary)
File "D:\WebQa\AMO\Mozilla\Addon-Tests\tests\desktop\test_details_page.py", line 442
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <class unittestzero.Assert at 0x02A10F90>
needle = u"Brief makes reading RSS feeds as easy and intuitive as it gets. Designed to ..., interactive page which let's you bookmark and tag items with a single click."
haystack = u"Add to Firefox\nBrief makes reading RSS feeds as easy and intuitive as it ge...age which let's you bookmark and tag items...\nby Adam Kowalczyk\n60,621 users"
@classmethod
def contains(self, needle, haystack):
try:
assert needle in haystack
except AssertionError:
> raise AssertionError('%s is not found in %s' % (needle, haystack))
E AssertionError: Brief makes reading RSS feeds as easy and intuitive as it gets. Designed to have exactly the right set of features, it is powerful and simple at the same time. Feeds are presented on a seamless, interactive page which let's you bookmark and tag items with a single click. is not found in Add to Firefox
E Brief makes reading RSS feeds as easy and intuitive as it gets. Designed to have exactly the right set of features, it is powerful and simple at the same time. Feeds are presented on a seamless, interactive page which let's you bookmark and tag items...
E by Adam Kowalczyk
E 60,621 users
File "C:\Python26\lib\site-packages\unittestzero.py", line 98
AssertionError
========================== 1 failed in 19.86 seconds ===========================