示例#1
0
    def _setUp(self, files, task):
        for f in files:
            if os.path.exists(f):
                shutil.rmtree(f)
            copytree_ignore_subversion(self.datapath, f)

        default(task)
示例#2
0
    def _setUp(self, files, task):
        for f in files:
            if os.path.exists(f):
                shutil.rmtree(f)
            copytree_ignore_subversion(self.datapath, f)

        default(task)
示例#3
0
    def setUp(self):
        # turn off interactive mode
        self.is_interactive = matplotlib.is_interactive()
        if self.is_interactive:
            pl.ioff()

        # copy input image
        testutils.copytree_ignore_subversion(self.datapath, self.imagename_ref,
                                             self.imagename)

        # make parameters default
        default(plotprofilemap)

        # copy standard task parameter set
        self.task_param = self.standard_task_param.copy()

        # initial check
        self.assertTrue(os.path.exists(self.imagename))
        self.assertFalse(matplotlib.is_interactive())
示例#4
0
 def __copy_from_datapath(self, filename):
     if os.path.exists(filename):
         shutil.rmtree(filename)
     copytree_ignore_subversion(self.datapath, filename)
示例#5
0
 def __copy_from_datapath(self, filename):
     if os.path.exists(filename):
         shutil.rmtree(filename)
     copytree_ignore_subversion(self.datapath, filename)