def test_response_equality_different_objects(): o1 = BaseResponse(method=responses.GET, url="a") o2 = "str" assert (o1 == o2) is False assert (o1 != o2) is True
def test_response_equality(args1, kwargs1, args2, kwargs2, expected): o1 = BaseResponse(*args1, **kwargs1) o2 = BaseResponse(*args2, **kwargs2) assert (o1 == o2) is expected assert (o1 != o2) is not expected