@tools.raises(DirectoryException)
    def test_remove_feature_with_error_throws_exception(self):
        with patch('shutil.rmtree') as mock:
            mock.side_effect = OSError()
            os.makedirs(self.directory.install_directory('test'))
            self.directory.remove_feature('test')
Create and return a reactor using C{self.reactorFactory}.
dataset/ETHPy150Open toumorokoshi/sprinter/tests/core/test_directory.py/TestDirectory.test_remove_feature_with_error_throws_exception--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/test/reactormixins.py/ReactorBuilder.buildReactor