Skip to content
Snippets Groups Projects
Commit 86bd5a46 authored by Ayub khan's avatar Ayub khan
Browse files

BOM-881

python3 compatibility
parent cc405046
No related branches found
No related tags found
No related merge requests found
......@@ -274,10 +274,14 @@ class EmailOptInListTest(ModuleStoreTestCase):
expected_msg_regex = (
"^Error: too few arguments$"
)
else:
elif num_args == 1:
expected_msg_regex = (
"^Error: the following arguments are required: ORG_ALIASES$"
)
elif num_args == 0:
expected_msg_regex = (
"^Error: the following arguments are required: OUTPUT_FILENAME, ORG_ALIASES$"
)
with self.assertRaisesRegexp(CommandError, expected_msg_regex):
call_command('email_opt_in_list', *args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment