Fix the reversed incoming parameters of assertEqual
For example.
self.assertEqual(self.client.packages.create.call_count, 2)
According the definition of assertEqual as below, it is reversed.
def assertEqual(self, expected, observed, message=''):
:param expected: The expected value.
:param observed: The observed value.
:param message: An optional message to include in the error
Reviewed: https:/ /review. openstack. org/218716 /git.openstack. org/cgit/ openstack/ python- muranoclient/ commit/ ?id=6e9f436e537 0ee3ec850a4918f 0b955338220833
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6e9f436e5370ee3 ec850a4918f0b95 5338220833
Author: xiangxinyong <email address hidden>
Date: Mon Aug 31 11:57:09 2015 +0800
Fix the reversed incoming parameters of assertEqual
For example. assertEqual( self.client. packages. create. call_count, 2)
self.
According the definition of assertEqual as below, it is reversed.
def assertEqual(self, expected, observed, message=''):
:param expected: The expected value.
:param observed: The observed value.
:param message: An optional message to include in the error
Change-Id: If8a3531745fef4 4ef2dabaca64811 ba26c4b861b
Closes-Bug: #1490370