diff options
Diffstat (limited to 'snaps/domain')
-rw-r--r-- | snaps/domain/stack.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/snaps/domain/stack.py b/snaps/domain/stack.py index eaa45b3..0302184 100644 --- a/snaps/domain/stack.py +++ b/snaps/domain/stack.py @@ -27,3 +27,7 @@ class Stack: """ self.name = name self.id = stack_id + + def __eq__(self, other): + return (self.name == other.name and + self.id == other.id) |