From 7e699256b319cdf41e747211763e593a6b5f3393 Mon Sep 17 00:00:00 2001
From: Dominic Schlegel <dominic.schlegel@hostpoint.ch>
Date: Thu, 17 Oct 2019 14:36:40 +0000
Subject: replace any deprecated log.warn with log.warning

Commit 6797e822959b84c98cf73e02b2a6e3d6ab3fd4fe replaced
the LOG.warn calls that linters were warning about; this
also replaces calls that linters would not have recognised
(as `log` is generally a parameter in these scenarios).

LP: #1508442
---
 tests/unittests/test_handler/test_handler_power_state.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'tests/unittests')

diff --git a/tests/unittests/test_handler/test_handler_power_state.py b/tests/unittests/test_handler/test_handler_power_state.py
index 3c726422..0d8d17b9 100644
--- a/tests/unittests/test_handler/test_handler_power_state.py
+++ b/tests/unittests/test_handler/test_handler_power_state.py
@@ -90,7 +90,7 @@ class TestCheckCondition(t_help.TestCase):
         mocklog = mock.Mock()
         self.assertEqual(
             psc.check_condition(self.cmd_with_exit(2), mocklog), False)
-        self.assertEqual(mocklog.warn.call_count, 1)
+        self.assertEqual(mocklog.warning.call_count, 1)
 
 
 def check_lps_ret(psc_return, mode=None):
-- 
cgit v1.2.3