1 2 3 4 5 6 7 8 9
from unittest.mock import Mock from kombu.exceptions import HttpError class test_HttpError: def test_str(self): assert str(HttpError(200, 'msg', Mock(name='response')))