def test_either_message_or_extra_option_required(self):
        # In Django < 1.5 django.core.management.base.BaseCommand.execute
        # catches CommandError and raises SystemExit instead.
        exception = SystemExit if django.VERSION < (1, 5) else management.base.CommandError

        with self.assertRaises(exception):
            management.call_command('push_ios_notification', service=self.service.pk,
                                    verbosity=0, stderr=StringIO.StringIO())
dataset/ETHPy150Open stephenmuss/django-ios-notifications/ios_notifications/tests.py/ManagementCommandPushNotificationTest.test_either_message_or_extra_option_required/original