This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Test_details fail

By: a guest on Apr 5th, 2012  |  syntax: Python  |  size: 2.98 KB  |  views: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ============================= test session starts ==============================
  2. platform win32 -- Python 2.6.6 -- pytest-2.1.3
  3. collecting ... collected 1 items
  4.  
  5. test_details_page.py F
  6.  
  7. =================================== FAILURES ===================================
  8. ___ TestDetails.test_addon_information_in_flyout_matches_to_its_details_page ___
  9.  
  10. self = <tests.desktop.test_details_page.TestDetails instance at 0x02A45378>
  11. mozwebqa = <mozwebqa.mozwebqa.TestSetup instance at 0x02AA3968>
  12.  
  13.     @pytest.mark.nondestructive
  14.     @pytest.mark.native
  15.     def test_addon_information_in_flyout_matches_to_its_details_page(self, mozwebqa):
  16.         """
  17.            Test for Litmus 25816.
  18.            https://litmus.mozilla.org/show_test.cgi?id=25816
  19.            """
  20.         home = Home(mozwebqa)
  21.         first_addon = home.featured_extensions[0]
  22.    
  23.         expected_star_rating = first_addon.star_rating
  24.         expected_total_review_count = first_addon.total_review_count
  25.         expected_summary = first_addon.summary
  26.         expected_author_names = first_addon.author_name
  27.         expected_number_of_users = first_addon.number_of_users
  28.    
  29.         details_page = first_addon.click_on_addon()
  30.    
  31.         Assert.equal(details_page.rating, expected_star_rating)
  32.         Assert.equal(details_page.total_review_count, expected_total_review_count)
  33. >       Assert.contains(details_page.summary, expected_summary)
  34.  
  35. File "D:\WebQa\AMO\Mozilla\Addon-Tests\tests\desktop\test_details_page.py", line 442
  36.  
  37. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  38.  
  39. self = <class unittestzero.Assert at 0x02A10F90>
  40. 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."
  41. 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"
  42.  
  43.     @classmethod
  44.     def contains(self, needle, haystack):
  45.         try:
  46.             assert needle in haystack
  47.         except AssertionError:
  48. >           raise AssertionError('%s is not found in %s' % (needle, haystack))
  49. 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
  50. 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...
  51. E           by Adam Kowalczyk
  52. E           60,621 users
  53.  
  54. File "C:\Python26\lib\site-packages\unittestzero.py", line 98
  55. AssertionError
  56. ========================== 1 failed in 19.86 seconds ===========================
clone this paste RAW Paste Data