diff options
| author | PranaliDeore <pranali11.deore@nttdata.com> | 2015-08-31 00:15:47 -0700 |
|---|---|---|
| committer | PranaliDeore <pranali11.deore@nttdata.com> | 2015-09-03 05:57:40 -0700 |
| commit | 16db827eaa77fe1a462f8d45c4dda97806de9e73 (patch) | |
| tree | 6b8c15c29dda8d2fb9b170edbeb4b906eccf0f79 /nova/tests/functional/api_samples_test_base.py | |
| parent | e349663cf21da7b5e209588d2f2eda341e9ce480 (diff) | |
| download | nova-16db827eaa77fe1a462f8d45c4dda97806de9e73.tar.gz | |
Fix order of arguments in assertEqual
Some tests used incorrect order assertEqual(observed, expected).
The correct order expected by testtools is
assertEqual(expected, observed).
Partial-Bug: #1259292
Change-Id: I30e7c4346844ec0eba50c50ca327ca1966600e7d
Diffstat (limited to 'nova/tests/functional/api_samples_test_base.py')
| -rw-r--r-- | nova/tests/functional/api_samples_test_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/functional/api_samples_test_base.py b/nova/tests/functional/api_samples_test_base.py index 022e235231..54f447c800 100644 --- a/nova/tests/functional/api_samples_test_base.py +++ b/nova/tests/functional/api_samples_test_base.py @@ -224,7 +224,7 @@ class ApiSampleTestBase(integrated_helpers._IntegratedTestBase): return subs def _verify_response(self, name, subs, response, exp_code): - self.assertEqual(response.status_code, exp_code) + self.assertEqual(exp_code, response.status_code) response_data = response.content response_data = self._pretty_data(response_data) if not os.path.exists(self._get_template(name, |
