Exemple #1
0
class TestRegister:
    def setup(self):
        self.main = Main()

    def teardown(self):
        pass

    def test_register(self):
        assert self.main.goto_register().do_register()
Exemple #2
0
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()
Exemple #3
0
class TestRegister:
    def setup(self):
        self.main = Main()#不要传参

    def test_register(self):
        self.main.goto_register().register()#链式调用