Skip to content
Snippets Groups Projects
Unverified Commit df066afd authored by Ayub's avatar Ayub Committed by GitHub
Browse files

Merge pull request #21848 from edx/BOM-882

BOM-881, BOM-882
parents 58b43caf 86bd5a46
No related branches found
No related tags found
No related merge requests found
......@@ -270,9 +270,18 @@ class EmailOptInListTest(ModuleStoreTestCase):
@ddt.data(0, 1)
def test_not_enough_args(self, num_args):
args = ["dummy"] * num_args
expected_msg_regex = (
"^Error: too few arguments$"
)
if six.PY2:
expected_msg_regex = (
"^Error: too few arguments$"
)
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