def test_shopping_search(self, html_f): """Test method for google shopping.""" # replace method to get html from a test html file google.shopping_search.get_html = \ Mock(return_value=html_f.read().decode('utf8')) shop = google.shopping("Disgaea 4") self.assertNotEqual(len(shop), 0)
def test_shopping_search(self): """Test method for google shopping.""" shop = google.shopping("Disgaea 4") self.assertNotEqual(len(shop), 0)