client = <django.test.client.Client object at 0x7f0e7fa7e748>
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f0e85b41588>
@given(content_utf8_detected_as_binary())
> def test_content_utf8_detected_as_binary_display(client, archive_data, content):
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:402:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/web/tests/browse/views/test_content.py:408: in test_content_utf8_detected_as_binary_display
assert_contains(resp, escape(content_display["content_data"]))
.tox/py3/lib/python3.7/site-packages/django/test/testcases.py:446: in assertContains
response, text, status_code, msg_prefix, html)
.tox/py3/lib/python3.7/site-packages/django/test/testcases.py:418: in _assert_contains
" (expected %d)" % (response.status_code, status_code)
/usr/lib/python3.7/unittest/case.py:839: in assertEqual
assertion_func(first, second, msg=msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.test.testcases.TestCase testMethod=run>, first = 500
second = 200
msg = "500 != 200 : Couldn't retrieve content: Response code was 500 (expected 200)"
def _baseAssertEqual(self, first, second, msg=None):
"""The default assertEqual implementation, not type specific."""
if not first == second:
standardMsg = '%s != %s' % _common_shorten_repr(first, second)
msg = self._formatMessage(msg, standardMsg)
> raise self.failureException(msg)
E AssertionError: 500 != 200 : Couldn't retrieve content: Response code was 500 (expected 200)
/usr/lib/python3.7/unittest/case.py:832: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 4 2020, 11:19 AM