m-ten / pwp-capstones

0 stars 0 forks source link

eq Dunder Method #2

Open hmontero1205 opened 6 years ago

hmontero1205 commented 6 years ago

Your __eq__ dunder method is incorrect. This method does not define behavior for =, but instead defines behavior for ==. Your code should've looked something like

def __eq__(self, other_user):
        return self.name == other_user.name and self.email == other_user.email:

You're supposed to return True if those two properties are the same, False otherwise.