Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Applications/PyCharm.app/Contents/helpers/pycharm/_jb_unittest_runner.py --path /Users/m.vasilyeva/PycharmProjects/news-autotests/Others/CheckUrl/TestUrls.py
- Testing started at 14:29 ...
- Launching unittests with arguments python -m unittest discover -s /Users/m.vasilyeva/PycharmProjects/news-autotests/Others/CheckUrl -p TestUrls.py -t /Users/m.vasilyeva/PycharmProjects/news-autotests/Others/CheckUrl in /Users/m.vasilyeva/PycharmProjects/news-autotests/Others/CheckUrl
- Ran 1 test in 0.488s
- FAILED (failures=1)
- ('Assertion error caught with data set ', ('https://news.rambler.ru/',))
- Failure
- Traceback (most recent call last):
- File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 329, in run
- testMethod()
- File "/Users/m.vasilyeva/Library/Python/2.7/lib/python/site-packages/unittest_data_provider/__init__.py", line 7, in repl
- fn(self, *i)
- File "/Users/m.vasilyeva/PycharmProjects/news-autotests/Others/CheckUrl/TestUrls.py", line 31, in test_check_url
- self.assertEqual(sc, 190, 'Url: {} return status code: {}'.format(url, sc))
- File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 513, in assertEqual
- assertion_func(first, second, msg=msg)
- File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 506, in _baseAssertEqual
- raise self.failureException(msg)
- AssertionError: Url: https://news.rambler.ru/ return status code: 200
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement