def test_remote_exception(): e = TypeError("hello") a = remote_exception(e, 'traceback-body') b = remote_exception(e, 'traceback-body') assert type(a) == type(b) assert isinstance(a, TypeError) assert 'hello' in str(a) assert 'Traceback' in str(a) assert 'traceback-body' in str(a)
def test_remote_exception(): e = TypeError("hello") a = remote_exception(e, "traceback-body") b = remote_exception(e, "traceback-body") assert type(a) == type(b) assert isinstance(a, TypeError) assert "hello" in str(a) assert "Traceback" in str(a) assert "traceback-body" in str(a)
def test_remote_exception(): e = TypeError("hello") a = remote_exception(e, 'traceback-body') b = remote_exception(e, 'traceback-body') assert type(a) == type(b) assert isinstance(a, TypeError) assert 'hello' in str(a) assert 'Traceback' in str(a) assert 'traceback-body' in str(a)