Python3 fix.
This commit is contained in:
Awais Qureshi
2019-09-27 18:21:52 +05:00
parent 12140e5b78
commit 9b39f91599

View File

@@ -20,7 +20,12 @@ class TestFixNotFound(ModuleStoreTestCase):
"""
Test fix_not_found command with no arguments
"""
with self.assertRaisesRegexp(CommandError, "Error: too few arguments"):
if six.PY2:
msg = "Error: too few arguments"
else:
msg = "Error: the following arguments are required: course_id"
with self.assertRaisesRegexp(CommandError, msg):
call_command('fix_not_found')
def test_fix_not_found_non_split(self):