port python2.x code to python3.x
[tools/itest-core.git] / tests / functional / test_in_project.py
1 from .base import TestBase, cd, PROJ_PATH, PROJ_CASES_PATH, DATA_PATH
2
3
4 class InProjectTest(TestBase):
5
6     @cd(PROJ_PATH)
7     def test_copy_fixture(self):
8         self.assertPass("cases/copy_fixture.xml")
9
10 #    @cd(PROJ_CASES_PATH)
11 #    def test_render_template_fixture(self):
12 #        self.assertPass("template_fixture.xml")
13
14     @cd(PROJ_CASES_PATH)
15     def test_copy_dir_fixture(self):
16         self.assertPass("copy_dir_fixture.xml")
17
18     @cd(PROJ_CASES_PATH)
19     def test_copy_dir_fixture(self):
20         self.assertPass("copy_part_of_dir_fixture.xml")
21
22     @cd(PROJ_CASES_PATH)
23     def test_copy_dir_with_tailing_slash(self):
24         self.assertPass("copy_dir_with_tailing_slash.xml")
25
26     @cd(DATA_PATH)
27     def test_argument_test_project_path(self):
28         self.assertPass("--test-project-path=sample_project",
29                         "sample_project/cases/copy_fixture.xml")