def test_option_menu_min(self): class_application = application.search_engine() self.assertTrue(class_application.option_menu_min("SEARCH").islower())
def test_count_page1(self): class_application = application.search_engine() self.assertTrue( type(class_application.count_page1("Python", "https://en.wikipedia.org/wiki/Python_(programming_language)")) == int )
def test_count_page2(self): class_application = application.search_engine() self.assertTrue(type(class_application.count_page2("Python", "https://es.wikipedia.org/wiki/Python")) == int)
def test_verify_option_menu(self): class_application = application.search_engine() self.assertEqual(class_application.verify_option_menu("search word"), "Valid option") self.assertEqual(class_application.verify_option_menu("HOLA"), "Invalid option")