test_management_commands: Add check for expected system exit.

This was missed in the recent improvements to
send_webhook_fixture_message.
This commit is contained in:
Tim Abbott 2017-10-20 09:16:38 -07:00
parent 03d72a1cd6
commit d1cb039c2c
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ class TestSendWebhookFixtureMessage(TestCase):
client = client_mock()
call_command(self.COMMAND_NAME, fixture=self.fixture_path, url=self.url)
with self.assertRaises(SystemExit):
call_command(self.COMMAND_NAME, fixture=self.fixture_path, url=self.url)
self.assertTrue(ujson_mock.dumps.called)
self.assertTrue(ujson_mock.loads.called)
self.assertTrue(open_mock.called)