summaryrefslogtreecommitdiff
path: root/nova/tests/unit/test_hacking.py
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2020-05-18 17:00:02 +0100
committerStephen Finucane <stephenfin@redhat.com>2020-05-18 17:00:57 +0100
commitd565e7a09281b803c47bc8eec3bac9c4959b4987 (patch)
treed09035a806d768899a19cddda20ba0f1b10a0a9b /nova/tests/unit/test_hacking.py
parent3a28b0e7717145bfb336138fb74a015913195725 (diff)
downloadnova-d565e7a09281b803c47bc8eec3bac9c4959b4987.tar.gz
trivial: Remove remaining '_LI' instances
Once again, do what we did for '_LE' and '_LW' and remove the final remnants of the log translation effort. Change-Id: Id6cf7a9bfbe69d6d3e65303e62403d1db9188a84 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'nova/tests/unit/test_hacking.py')
-rw-r--r--nova/tests/unit/test_hacking.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/nova/tests/unit/test_hacking.py b/nova/tests/unit/test_hacking.py
index 8aa304ba1c..b9f413e52b 100644
--- a/nova/tests/unit/test_hacking.py
+++ b/nova/tests/unit/test_hacking.py
@@ -709,22 +709,21 @@ class HackingTestCase(test.NoDBTestCase):
def test_log_context(self):
code = """
- LOG.info(_LI("Rebooting instance"),
- context=context, instance=instance)
+ LOG.info("Rebooting instance",
+ context=context, instance=instance)
"""
errors = [(1, 0, 'N353')]
self._assert_has_errors(code, checks.check_context_log,
expected_errors=errors)
code = """
- LOG.info(_LI("Rebooting instance"),
- context=admin_context, instance=instance)
+ LOG.info("Rebooting instance",
+ context=admin_context, instance=instance)
"""
errors = [(1, 0, 'N353')]
self._assert_has_errors(code, checks.check_context_log,
expected_errors=errors)
code = """
- LOG.info(_LI("Rebooting instance"),
- instance=instance)
+ LOG.info("Rebooting instance", instance=instance)
"""
self._assert_has_no_errors(code, checks.check_context_log)