Advertisement
Guest User

Untitled

a guest
May 12th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. =================================== FAILURES ===================================
  2. ______________________ TestRedirects.test_aurora_redirect ______________________
  3. [gw14] darwin -- Python 2.7.2 /Users/Shared/Jenkins/Home/jobs/mozilla.com.prod.saucelabs/workspace/.env/bin/python
  4. self = <tests.test_redirect.TestRedirects object at 0x105260690>
  5. mozwebqa = <pytest_mozwebqa.pytest_mozwebqa.TestSetup instance at 0x1051435a8>
  6.  
  7. @pytest.mark.nondestructive
  8. def test_aurora_redirect(self, mozwebqa):
  9. """
  10. Test aurora.mozilla.org redirects to
  11. http://www.mozilla.org/firefox/channel/#aurora
  12. """
  13. url = 'http://aurora.mozilla.org'
  14. response = requests.get(url)
  15. Assert.equal(response.history[-1].headers['location'],
  16. > 'http://www.mozilla.org/en-US/firefox/channel/#aurora')
  17.  
  18. tests/test_redirect.py:199:
  19. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  20.  
  21. self = <class unittestzero.Assert at 0x104dfea10>
  22. first = 'http://www.mozilla.org/en-US/firefox/channel/'
  23. second = 'http://www.mozilla.org/en-US/firefox/channel/#aurora', msg = None
  24.  
  25. @classmethod
  26. def equal(self, first, second, msg=None):
  27. """
  28. Asserts that 2 elements are the same
  29.  
  30. :Args:
  31. - First object to be tested
  32. - Second object to be tested
  33. - Message that will be printed if it fails
  34. """
  35. > assert first == second, msg
  36. E assert 'http://www.m...efox/channel/' == 'http://www.mo...annel/#aurora'
  37. E - http://www.mozilla.org/en-US/firefox/channel/
  38. E + http://www.mozilla.org/en-US/firefox/channel/#aurora
  39. E ? +++++++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement