Commit 4de8d077 authored by Aaron1011's avatar Aaron1011
Browse files

Merge pull request #492 from Kjwon15/compare-status

Comparison between Status object
parents f76842eb 069775e4
......@@ -112,6 +112,20 @@ class Status(Model):
def favorite(self):
return self._api.create_favorite(
def __eq__(self, other):
if isinstance(other, Status):
return ==
return NotImplemented
def __ne__(self, other):
result = self == other
if result is NotImplemented:
return result
return not result
class User(Model):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment