summaryrefslogtreecommitdiff
path: root/test/test_logger.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-09-28 00:59:45 +0200
committermathieui <mathieui@mathieui.net>2017-09-28 00:59:45 +0200
commit9f1c0c3d541eb67101b1cca33543d71940a4168f (patch)
tree5141b9115f78c9e24227f02979e6b647bf21a72e /test/test_logger.py
parent377b58f1e8e98afa5beb8f560609ca55cba418ce (diff)
downloadpoezio-9f1c0c3d541eb67101b1cca33543d71940a4168f.tar.gz
poezio-9f1c0c3d541eb67101b1cca33543d71940a4168f.tar.bz2
poezio-9f1c0c3d541eb67101b1cca33543d71940a4168f.tar.xz
poezio-9f1c0c3d541eb67101b1cca33543d71940a4168f.zip
Rename parse_message_line to parse_log_line
Diffstat (limited to 'test/test_logger.py')
-rw-r--r--test/test_logger.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_logger.py b/test/test_logger.py
index 40257536..d0e2a89b 100644
--- a/test/test_logger.py
+++ b/test/test_logger.py
@@ -3,14 +3,14 @@ Test the functions in the `logger` module
"""
import pytest
-from poezio.logger import LogInfo, LogMessage, parse_message_line
+from poezio.logger import LogInfo, LogMessage, parse_log_line
def test_parse_message():
line = 'MR 20170909T09:09:09Z 000 <nick>  body'
- assert vars(parse_message_line(line)) == vars(LogMessage('2017', '09', '09', '09', '09', '09', '0', 'nick', 'body'))
+ assert vars(parse_log_line(line)) == vars(LogMessage('2017', '09', '09', '09', '09', '09', '0', 'nick', 'body'))
line = '<>'
- assert parse_message_line(line) == None
+ assert parse_log_line(line) == None
line = 'MR 20170908T07:05:04Z 003 <nick>  '
- assert vars(parse_message_line(line)) == vars(LogMessage('2017', '09', '08', '07', '05', '04', '003', 'nick', ''))
+ assert vars(parse_log_line(line)) == vars(LogMessage('2017', '09', '08', '07', '05', '04', '003', 'nick', ''))