'Test whether the search_remote_channels throws an exception if dispersy is not enabled.'

@raises(OperationNotEnabledByConfigurationException)
def test_search_remote_channels(self):

    self.session.config.get_channel_search_enabled = (lambda : False)
    self.session.search_remote_channels(None)
