Commit 0615775a authored by Michal Čihař's avatar Michal Čihař

Fix passed parameters

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent cd20cf9d
......@@ -34,6 +34,7 @@ class LoadClassTest(TestCase):
def test_invalid_name(self):
assertRaisesRegex(
self,
ImproperlyConfigured,
'Error importing class unittest in TEST: .*"'
'(not enough|need more than)',
......@@ -42,6 +43,7 @@ class LoadClassTest(TestCase):
def test_invalid_module(self):
assertRaisesRegex(
self,
ImproperlyConfigured,
'weblate.trans.tests.missing in TEST: "'
'No module named .*missing["\']',
......@@ -50,6 +52,7 @@ class LoadClassTest(TestCase):
def test_invalid_class(self):
assertRaisesRegex(
self,
ImproperlyConfigured,
'"weblate.trans.tests.test_utils" does not define a "Foo" class',
load_class, 'weblate.trans.tests.test_utils.Foo', 'TEST'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment