Commit cfed98f8 authored by kjwon15's avatar kjwon15
Browse files

Comparison between Status object

parent f76842eb
......@@ -112,6 +112,12 @@ class Status(Model):
def favorite(self):
return self._api.create_favorite(self.id)
def __eq__(self, other):
if isinstance(other, Status):
return self.id == other.id
return NotImplemented
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