summaryrefslogtreecommitdiffstats
path: root/core/TESTS/test_parsers.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/TESTS/test_parsers.py')
-rw-r--r--core/TESTS/test_parsers.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/TESTS/test_parsers.py b/core/TESTS/test_parsers.py
index f72e9ea..301e387 100644
--- a/core/TESTS/test_parsers.py
+++ b/core/TESTS/test_parsers.py
@@ -87,15 +87,17 @@ class ImportTest(TestCase):
print(f"'{i.message}'")
expected = [
- " ! - 1986 EXCEPTION: 'Kurt Keinnamen' (Kurt Keinnamen) in entry tid='1986_s02' for this year.",
+ " ! - 1986 No name match for: 'Kurt Keinnamen' in entry tid='1986-07-27c' for this year.",
]
not_expected = [
- " ! - 1986 EXCEPTION:: 'Dave Smartarse' (Dave Smartarse) in entry tid='1986_s01' for this year.",
- " ! - 1986 Warning: logentry: surface - stupour - no expo member author for entry '1986_s03'",
- " ! - 1986 Warning: logentry: 123 - wave 2 - no expo member author for entry '1986_s02'",
+ " ! - 1986 EXCEPTION:: 'Dave Smartarse' (Dave Smartarse) in entry tid='1986-07-27a' for this year.",
+ " ! - 1986 Warning: logentry: surface - stupour - no expo member author for entry '1986-07-31a'",
+ " ! - 1986 Warning: logentry: 123 - wave 2 - no expo member author for entry '1986-08-01a'",
]
-
+ with open('_test_response.txt', 'w') as f:
+ for m in messages:
+ f.write(m)
for e in expected:
self.assertIn(e, messages)
for e in not_expected: