class Register(unittest.TestCase):

    def setUp(self):
        self.starter = webdriver.web_driver_helper.Injector()
        self.register_page = RegisterPage(self.starter.inject_driver())
        self.register_page.open('http://172.17.201.128/#/registracion')

    def test_register_is_available(self):
        assert self.register_page.show_base_title() == 'Registrate en Pasa la Gorra - Un Techo'

    def test_successful_register(self):
        self.register_page.do_register('Mega', 'Man', 'Capital', 'Robotnia', 'Robot', '01010101', '*****@*****.**', 'password')
        assert self.register_page.show_successful_register_title() == 'Registracion Correcta en Pasa la Gorra - Un Techo'

    #def tearDown(self):
       # self.register_page.quit_browser()
 def test_register_click(self):
     self.login_page.click_register()
     register_page = RegisterPage(self.starter.inject_driver())
     assert register_page.show_title() == 'Registrate en Pasa la Gorra - Un Techo'
 def setUp(self):
     self.starter = webdriver.web_driver_helper.Injector()
     self.register_page = RegisterPage(self.starter.inject_driver())
     self.register_page.open('http://172.17.201.128/#/registracion')