コード例 #1
0
 def test_layout_real(self, action_dict,
                      init_action_subsystem_class_layout):
     subsys = init_action_subsystem_class_layout()
     subsys.layout(action_dict)
     os.rename(os.path.abspath(TEST_NAME) + "/" + TEST_NAME,
               os.path.abspath(TEST_NAME) + "/" + PROJECT_DIR)
     assert os.path.exists(TEST_NAME)
     assert dir_cmp(PROJECT_PRODUCTION_DIR_PATH, TEST_NAME)
コード例 #2
0
 def test_layout_app(self, action_dict,
                     init_action_subsystem_class_layout):
     subsys = init_action_subsystem_class_layout()
     subsys.layout(action_dict)
     assert os.path.exists(TEST_NAME)
     assert dir_cmp(APPLICATION_DIR_PATH, TEST_NAME)
コード例 #3
0
 def test_layout_study(self, action_dict,
                       init_action_subsystem_class_layout):
     subsys = init_action_subsystem_class_layout()
     subsys.layout(action_dict)
     assert os.path.exists(TEST_NAME)
     assert dir_cmp(PROJECT_STUDY_DIR_PATH, TEST_NAME)
コード例 #4
0
 def test_as_template(self):
     assert dir_cmp(APPLICATION_DIR_PATH, self.layout.root_path)
コード例 #5
0
 def test_as_template(self):
     os.rename(self.layout.root_path + "/" + self.layout.root,
               self.layout.root_path + "/" + PROJECT_DIR)
     assert dir_cmp(PROJECT_PRODUCTION_DIR_PATH, self.layout.root_path)
コード例 #6
0
 def test_as_template(self, setup_layout):
     assert dir_cmp(PROJECT_STUDY_DIR_PATH, self.layout.root_path)