fix tests

This commit is contained in:
Denis Zheleztsov 2016-11-14 15:04:16 +03:00
parent c62a38eb7f
commit 6422a2663c

View File

@ -27,22 +27,22 @@ class TestLogger(unittest.TestCase):
def test_info(self): def test_info(self):
from surok.logger import make_message from surok.logger import make_message
m = make_message m = make_message
self.assertIn('INFO', m({'level': 'info', 'raw': 'log message'})) self.assertIn('INFO', m({'level': 'INFO', 'raw': 'log message'}))
def test_warning(self): def test_warning(self):
from surok.logger import make_message from surok.logger import make_message
m = make_message m = make_message
self.assertIn('WARNING', m({'level': 'warning', 'raw': 'log message'})) self.assertIn('WARNING', m({'level': 'WARNING', 'raw': 'log message'}))
def test_error(self): def test_error(self):
from surok.logger import make_message from surok.logger import make_message
m = make_message m = make_message
self.assertIn('ERROR', m({'level': 'error', 'raw': 'log message'})) self.assertIn('ERROR', m({'level': 'ERROR', 'raw': 'log message'}))
def test_info(self): def test_info(self):
from surok.logger import make_message from surok.logger import make_message
m = make_message m = make_message
self.assertIn('DEBUG', m({'level': 'debug', 'raw': 'log message'})) self.assertIn('DEBUG', m({'level': 'DEBUG', 'raw': 'log message'}))
if __name__ == '__main__': if __name__ == '__main__':