def test_eq(self): e1 = Exchange('foo', 'direct') e2 = Exchange('foo', 'direct') assert e1 == e2 e3 = Exchange('foo', 'topic') assert e1 != e3 assert e1.__eq__(True) == NotImplemented
def test_eq(self): e1 = Exchange('foo', 'direct') e2 = Exchange('foo', 'direct') self.assertEqual(e1, e2) e3 = Exchange('foo', 'topic') self.assertNotEqual(e1, e3) self.assertEqual(e1.__eq__(True), NotImplemented)