'Test whether we receive results when searching remotely for channels'

@deferred(timeout=20)
def test_channel_search(self):

    test_deferred = Deferred()
    def on_search_results_channels(_dummy1, _dummy2, _dummy3, results):
        self.assertEqual(len(results['result_list']), 1)
        test_deferred.callback(None)
    reactor.callLater(5, self.session.search_remote_channels, [u'test'])
    self.session.add_observer(on_search_results_channels, SIGNAL_CHANNEL, [SIGNAL_ON_SEARCH_RESULTS])
    return test_deferred
