1 from base import TestBase, CASES_PATH, cd
4 class SetupTeardownTest(TestBase):
7 def test_setup_always_run(self):
8 self.assertWithText(["-vv", "setup.xml"],
9 "This message only appears in setup section")
12 def test_teardown_always_run(self):
13 self.assertWithText(["-vv", "teardown.xml"],
14 "This message only appears in teardown section")
17 def test_steps_wont_run_if_setup_failed(self):
18 self.assertWithoutText(["-vv", "setup_failed.xml"],
19 "This message only appears in steps section")
22 def test_vars_in_setup_can_be_saw_in_steps(self):
23 self.assertPass("vars_in_setup.xml")
26 def test_vars_in_setup_can_be_saw_in_teardown(self):
27 self.assertWithText(["-vv", "vars_in_setup.xml"],