def test_start_and_stop_errors(self):

        simple_plugin = SimplePlugin()
        bad_plugin    = BadPlugin()
        application   = TestApplication(plugins=[simple_plugin, bad_plugin])

        # Try to start the application - the bad plugin should barf.
        self.assertRaises(ZeroDivisionError, application.start)

        # Try to stop the application - the bad plugin should barf.
        self.assertRaises(ZeroDivisionError, application.stop)

        # Try to start a non-existent plugin.
        self.assertRaises(
            SystemError, application.start_plugin, plugin_id='bogus'
        )

        # Try to stop a non-existent plugin.
        self.assertRaises(
            SystemError, application.stop_plugin, plugin_id='bogus'
        )

        return
source: <int> or '<int>|<filename>|synth [:<param_name>=<value> [:...]]'
dataset/ETHPy150Open enthought/envisage/envisage/tests/application_test_case.py/ApplicationTestCase.test_start_and_stop_errors--crossover with--dataset/ETHPy150Open bluquar/cubr/video.py/create_capture