def requires(self, requirement):
        if requirement == 'Net':
            return NetMock()
        if requirement == 'Event':
            return EventMock()
        else:
            raise AssertionError('Unexpected requirement %s' % requirement)
dataset/ETHPy150Open SpockBotMC/SpockBot/tests/plugins/helpers/test_chat.py/PluginLoaderMock.requires/original