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. Also fixes spelling errors:resoruces.
Reviewed: https:/ /review. openstack. org/337033 /git.openstack. org/cgit/ openstack/ python- ceilometerclien t/commit/ ?id=f97de95a638 347993545686ac9 c225d831838340
Committed: https:/
Submitter: Jenkins
Branch: master
commit f97de95a6383479 93545686ac9c225 d831838340
Author: yuyafei <email address hidden>
Date: Mon Jul 4 16:23:12 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. Also fixes spelling errors:resoruces.
Change-Id: I8a4e09e277a14a 16105feab81ba8d 07ceee5b47f
Closes-Bug: #1586268