diff --git a/cloudkittyclient/apiclient/base.py b/cloudkittyclient/apiclient/base.py index 67e8dec..be4b99e 100644 --- a/cloudkittyclient/apiclient/base.py +++ b/cloudkittyclient/apiclient/base.py @@ -522,6 +522,9 @@ class Resource(object): return self.id == other.id return self._info == other._info + def __ne__(self, other): + return not self.__eq__(other) + def is_loaded(self): return self._loaded diff --git a/cloudkittyclient/apiclient/fake_client.py b/cloudkittyclient/apiclient/fake_client.py index 0634298..c100e2b 100644 --- a/cloudkittyclient/apiclient/fake_client.py +++ b/cloudkittyclient/apiclient/fake_client.py @@ -87,6 +87,9 @@ class TestResponse(requests.Response): self.headers == other.headers and self._content == other._content) + def __ne__(self, other): + return not self.__eq__(other) + class FakeHTTPClient(client.HTTPClient):