Fix call_command options for correct format to work with Django 1.7+

This commit is contained in:
Garret Wassermann 2016-10-20 02:29:23 -04:00
parent 6418194b85
commit 5e93297787

View File

@ -29,7 +29,7 @@ class GetEmailTestCase(TestCase):
# tests correct syntax for command line option
def test_get_email_quiet_option(self):
with mock.patch('helpdesk.management.commands.get_email.process_email') as mocked_processemail:
call_command('get_email', '--quiet')
call_command('get_email', quiet=True)
mocked_processemail.assert_called_with(quiet=True)
call_command('get_email')
mocked_processemail.assert_called_with(quiet=False)