'Test BinSearch'

@unittest.skipIf((not requests.head(binsearch.urls['rss'], timeout=30).ok), 'BinSearch    is    unavailable')
def test_binsearch(self):

    result = binsearch.cache.get_rss_feed(binsearch.urls['rss'], params={'max': 50, 'g': 'alt.binaries.hdtv'})
    self.assertTrue(('entries' in result))
    self.assertTrue(('feed' in result))
    for item in (result['entries'] or []):
        (title, url) = binsearch._get_title_and_url(item)
        self.assertTrue((title and url))
