diff src/test/test_memory.py @ 997:b3f383ab39da

test: configuration/use of new logging system
author Goffi <goffi@goffi.org>
date Mon, 21 Apr 2014 20:04:52 +0200
parents 6f96ee4d8cc0
children de415d7984f7
line wrap: on
line diff
--- a/src/test/test_memory.py	Mon Apr 21 19:45:10 2014 +0200
+++ b/src/test/test_memory.py	Mon Apr 21 20:04:52 2014 +0200
@@ -21,7 +21,8 @@
 from sat.test import helpers
 from twisted.trial import unittest
 import traceback
-import logging
+from sat.core.log import getLogger
+from logging import INFO
 from constants import Const
 from xml.dom import minidom
 
@@ -169,9 +170,9 @@
     def test_paramsRegisterApp(self):
 
         def register(*args):
-            logger = logging.getLogger()
+            logger = getLogger()
             level = logger.getEffectiveLevel()
-            logger.setLevel(logging.INFO)
+            logger.setLevel(INFO)
             self.host.memory.paramsRegisterApp(*args)
             logger.setLevel(level)