def test_has_results(self): """ Tests for the has_results function """ providers = [self.searchprovider0, self.searchprovider1, self.searchprovider2] self.assertTrue(has_results(providers)) self.assertTrue(len(has_results(providers)) == 2) self.assertFalse(has_results([self.searchprovider0]))