base.Resource not define __ne__() built-in function
Class base.Resource defines __eq__() built-in function, but does
not define __ne__() built-in function, so self.assertEqual works
but self.assertNotEqual does not work at all in this test case in
python2. This patch fixes it by defining __eq__() built-in function
of class base.Resource.
Reviewed: https:/ /review. openstack. org/337031 /git.openstack. org/cgit/ openstack/ python- heatclient/ commit/ ?id=4c2a88b9590 5ab724a5fff5b19 ff10c1ca43f4a3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4c2a88b95905ab7 24a5fff5b19ff10 c1ca43f4a3
Author: yuyafei <email address hidden>
Date: Mon Jul 4 16:17:51 2016 +0800
base.Resource not define __ne__() built-in function
Class base.Resource defines __eq__() built-in function, but does
not define __ne__() built-in function, so self.assertEqual works
but self.assertNotEqual does not work at all in this test case in
python2. This patch fixes it by defining __eq__() built-in function
of class base.Resource.
Change-Id: I13ed9ddd6ae6ef 074232b33695916 bc83930dcf0
Closes-Bug: #1586268