diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-11-03 06:07:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-11-03 06:07:45 +0000 |
commit | 5f208e04c159791e668031a7fa83f98724ec8d24 (patch) | |
tree | 4b58b42fd2a91a14871010e2dd39369a839ae383 /gitlint/tests/rules/test_rules.py | |
parent | Adding upstream version 0.13.1. (diff) | |
download | gitlint-222ef16bc3e4db460c53d260b1af09254a55002f.tar.xz gitlint-222ef16bc3e4db460c53d260b1af09254a55002f.zip |
Adding upstream version 0.14.0.upstream/0.14.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gitlint/tests/rules/test_rules.py')
-rw-r--r-- | gitlint/tests/rules/test_rules.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gitlint/tests/rules/test_rules.py b/gitlint/tests/rules/test_rules.py index 89caa27..58ee1c3 100644 --- a/gitlint/tests/rules/test_rules.py +++ b/gitlint/tests/rules/test_rules.py @@ -13,6 +13,11 @@ class RuleTests(BaseTestCase): setattr(rule, attr, u"åbc") self.assertNotEqual(Rule(), rule) + def test_rule_log(self): + rule = Rule() + rule.log.debug(u"Tēst message") + self.assert_log_contains(u"DEBUG: gitlint.rules Tēst message") + def test_rule_violation_equality(self): violation1 = RuleViolation(u"ïd1", u"My messåge", u"My cöntent", 1) self.object_equality_test(violation1, ["rule_id", "message", "content", "line_nr"]) |