BOM-882
python3 compatibility
This commit is contained in:
@@ -270,9 +270,14 @@ 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$"
|
||||
)
|
||||
else:
|
||||
expected_msg_regex = (
|
||||
"^Error: the following arguments are required: ORG_ALIASES$"
|
||||
)
|
||||
with self.assertRaisesRegexp(CommandError, expected_msg_regex):
|
||||
call_command('email_opt_in_list', *args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user