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 __ne__() built-in function
of class base.Resource. Also fixes spelling errors:resoruces.
Reviewed: https:/ /review. openstack. org/337012 /git.openstack. org/cgit/ openstack/ python- novaclient/ commit/ ?id=55201c55a8d 74fc49fe8e6359d 54d5b4c2303e1c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 55201c55a8d74fc 49fe8e6359d54d5 b4c2303e1c
Author: yuyafei <email address hidden>
Date: Mon Jul 4 15:30:56 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 __ne__() built-in function
of class base.Resource. Also fixes spelling errors:resoruces.
Change-Id: I39e6f6b94e9490 afc14143208e6f2 0b0ef960991
Closes-Bug: #1586268