diff options
Diffstat (limited to 'tests/checkers/unittest_base.py')
-rw-r--r-- | tests/checkers/unittest_base.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/checkers/unittest_base.py b/tests/checkers/unittest_base.py index 7121f257f..6a20db922 100644 --- a/tests/checkers/unittest_base.py +++ b/tests/checkers/unittest_base.py @@ -303,7 +303,11 @@ class TestMultiNamingStyle(CheckerTestCase): message = Message( "invalid-name", node=classes[0], - args=("Class", "classb", "'(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern"), + args=( + "Class", + "classb", + "the `UP` group in the '(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern", + ), ) with self.assertAddsMessages(message): cls = None @@ -340,7 +344,7 @@ class TestMultiNamingStyle(CheckerTestCase): args=( "Class", "CLASSC", - "'(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern", + "the `down` group in the '(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern", ), ), ] @@ -371,7 +375,11 @@ class TestMultiNamingStyle(CheckerTestCase): message = Message( "invalid-name", node=function_defs[1], - args=("Function", "FUNC", "'(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern"), + args=( + "Function", + "FUNC", + "the `down` group in the '(?:(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern", + ), ) with self.assertAddsMessages(message): func = None @@ -402,7 +410,7 @@ class TestMultiNamingStyle(CheckerTestCase): args=( "Function", "UPPER", - "'(?:(?P<ignore>FOO)|(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern", + "the `down` group in the '(?:(?P<ignore>FOO)|(?P<UP>[A-Z]+)|(?P<down>[a-z]+))$' pattern", ), ) with self.assertAddsMessages(message): |