diff options
author | Corey Wright <corey.wright@rackspace.com> | 2015-08-21 22:40:36 -0500 |
---|---|---|
committer | Corey Wright <corey.wright@rackspace.com> | 2015-08-21 22:49:31 -0500 |
commit | 7a1ef423b962e8f1736caec2c65546c1d6c7270b (patch) | |
tree | 5f333f14602717490e78084b7ab52122466f2845 | |
parent | 01037830d44502c076d006bbf38cff7e417ffc89 (diff) | |
download | oslo-policy-7a1ef423b962e8f1736caec2c65546c1d6c7270b.tar.gz |
Pass reference then actual to assertEqual
The method check_loaded_files() receives a list of reference filenames
and asserts that is equal to the actual list of
enforcer._loaded_files, but passes them to assertEqual() in reverse
order of what assertEqual expects and prints if the assertion fails.
Change-Id: I0b42c2489185904ddeba555237e3c96bb1bb1090
-rw-r--r-- | oslo_policy/tests/test_policy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_policy/tests/test_policy.py b/oslo_policy/tests/test_policy.py index 328b651..b82c860 100644 --- a/oslo_policy/tests/test_policy.py +++ b/oslo_policy/tests/test_policy.py @@ -149,9 +149,9 @@ class EnforcerTest(base.PolicyBaseTestCase): def check_loaded_files(self, filenames): self.assertEqual( - self.enforcer._loaded_files, [self.get_config_file_fullname(n) - for n in filenames] + for n in filenames], + self.enforcer._loaded_files ) def test_load_file(self): |