Repair test D

This commit is contained in:
cesar991 2016-09-29 13:30:19 +02:00
parent 4345282d25
commit f3de10c345
1 changed files with 6 additions and 5 deletions

View File

@ -174,7 +174,7 @@ class Network_components(PandoraWebDriverTestCase):
"""
driver = self.driver
agent_name = gen_random_string(6)
plugin_component_name = gen_random_string(6)
@ -207,14 +207,15 @@ class Network_components(PandoraWebDriverTestCase):
time.sleep(3)
Select(driver.find_element_by_id("network_component")).select_by_visible_text(plugin_component_name)
self.assertEqual("80" in driver.page_source,True)
driver.find_element_by_id("submit-crtbutton").click()
search_module (driver,agent_name,plugin_component_name,go_to_module=True)
search_module (driver,agent_name,plugin_component_name)
self.assertEqual("127.0.0.1" in driver.page_source,True)
self.assertEqual(plugin_component_name in driver.page_source,True)
self.assertEqual("80" in driver.page_source,True)
if __name__ == "__main__":
unittest2.main()