class TestRegister: def setup(self): self.main = Main() def teardown(self): pass def test_register(self): assert self.main.goto_register().do_register()
class TestRegister: def setup(self): self.main = Main() def test_register(self): assert self.main.goto_register().register() def test_login(self): assert self.main.goto_login().goto_register().register()
class TestRegister: def setup(self): self.main = Main()#不要传参 def test_register(self): self.main.goto_register().register()#链式调用