from cisc106 import assertEqual

class Cow:
    def __init__(self, name, legs):
        self.legs = legs
        self.name = name
    def __eq__(self, other):
        print('using my new eq method')
        return self.legs == other.legs and self.name == other.name\
               and type(other) is Cow

c1 = Cow('Elsie',4)
c2 = Cow('Elsie',4)
c3 = Cow('Elmer',3)

assertEqual(c1 == c2, True)
assertEqual(c1 == c3, True) #this test will fail
assertEqual(5**2, 25)