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): ...@@ -34,6 +34,7 @@ class LoadClassTest(TestCase):
def test_invalid_name(self): def test_invalid_name(self):
assertRaisesRegex( assertRaisesRegex(
self,
ImproperlyConfigured, ImproperlyConfigured,
'Error importing class unittest in TEST: .*"' 'Error importing class unittest in TEST: .*"'
'(not enough|need more than)', '(not enough|need more than)',
...@@ -42,6 +43,7 @@ class LoadClassTest(TestCase): ...@@ -42,6 +43,7 @@ class LoadClassTest(TestCase):
def test_invalid_module(self): def test_invalid_module(self):
assertRaisesRegex( assertRaisesRegex(
self,
ImproperlyConfigured, ImproperlyConfigured,
'weblate.trans.tests.missing in TEST: "' 'weblate.trans.tests.missing in TEST: "'
'No module named .*missing["\']', 'No module named .*missing["\']',
...@@ -50,6 +52,7 @@ class LoadClassTest(TestCase): ...@@ -50,6 +52,7 @@ class LoadClassTest(TestCase):
def test_invalid_class(self): def test_invalid_class(self):
assertRaisesRegex( assertRaisesRegex(
self,
ImproperlyConfigured, ImproperlyConfigured,
'"weblate.trans.tests.test_utils" does not define a "Foo" class', '"weblate.trans.tests.test_utils" does not define a "Foo" class',
load_class, 'weblate.trans.tests.test_utils.Foo', 'TEST' 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