diff options
Diffstat (limited to 'oslo_context/tests/test_context.py')
-rw-r--r-- | oslo_context/tests/test_context.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/oslo_context/tests/test_context.py b/oslo_context/tests/test_context.py index 3f8e811..e172ca2 100644 --- a/oslo_context/tests/test_context.py +++ b/oslo_context/tests/test_context.py @@ -613,17 +613,12 @@ class ContextTest(test_base.BaseTestCase): self.assertEqual(0, len(self.warnings)) self.assertEqual(user, ctx.user) - if context._log_deprecation_warnings: - self.assertEqual(1, len(self.warnings)) + self.assertEqual(1, len(self.warnings)) self.assertEqual(tenant, ctx.tenant) - if context._log_deprecation_warnings: - self.assertEqual(2, len(self.warnings)) + self.assertEqual(2, len(self.warnings)) self.assertEqual(domain, ctx.domain) - if context._log_deprecation_warnings: - self.assertEqual(3, len(self.warnings)) + self.assertEqual(3, len(self.warnings)) self.assertEqual(user_domain, ctx.user_domain) - if context._log_deprecation_warnings: - self.assertEqual(4, len(self.warnings)) + self.assertEqual(4, len(self.warnings)) self.assertEqual(project_domain, ctx.project_domain) - if context._log_deprecation_warnings: - self.assertEqual(5, len(self.warnings)) + self.assertEqual(5, len(self.warnings)) |