Exemple #1
0
    def test_replace_template_strings(self):
        self._create_test_templates()

        replace_template_strings(TestMethods.template_test_directory,
                                 ['variable0', 'variable1'],
                                 ['test0', 'test1'])

        files = [
            str(TestMethods.template_test_directory / 'test'),
            str(TestMethods.template_test_sub_directory / 'test')
        ]

        for file in files:
            self.assertTrue(string_in_file(file, 'test0'))
            self.assertTrue(string_in_file(file, 'test1'))
            self.assertTrue(string_in_file(file, 'test0 - test1'))

        remove_directory(TestMethods.template_test_directory)
Exemple #2
0
 def clean(self):
     remove_directory('/tmp/gnome-common')
     remove_directory('/tmp/gnome-common-2.16')
     remove_directory('/tmp/octopus/')
     remove_directory('/tmp/atunes')
Exemple #3
0
 def tearDown(self):
     remove_directory(self.test_project_directory)
     remove_directory(self.test_project_default_directory)
Exemple #4
0
    def tearDownClass(cls):
        remove_directory(cls.project_directory)

        os.environ.pop(environment.LIMIS_PROJECT_NAME_ENVIRONMENT_VARIABLE)
        os.environ.pop(environment.LIMIS_PROJECT_SETTINGS_ENVIRONMENT_VARIABLE)
Exemple #5
0
 def tearDown(self):
     remove_directory(self.test_service_default_directory)
     remove_directory(self.test_service_directory)
Exemple #6
0
 def clean(self):
     remove_directory('/tmp/pkg-config')
 def clean (self):
     os.remove ('/tmp/pycairo-0.4.0.tar.gz')
     remove_directory ('/tmp/pycairo-0.4.0/')
     remove_directory ('/tmp/pycairo-local')
     os.remove ('/tmp/2007-April.txt')
Exemple #8
0
 def clean(self):
     os.remove('/tmp/pycairo-0.4.0.tar.gz')
     remove_directory('/tmp/pycairo-0.4.0/')
     remove_directory('/tmp/pycairo-local')
     os.remove('/tmp/2007-April.txt')
Exemple #9
0
 def clean(self):
     remove_directory('/tmp/pkg-config')
 def clean (self):
     remove_directory ('/tmp/cpufrequtils')
     remove_directory ('/tmp/pciutils')
     remove_directory ('/tmp/libspectre')
Exemple #11
0
 def clean(self):
     remove_directory('/tmp/poppler')
     remove_directory('/tmp/poppler-0.5')
     remove_directory('/tmp/poppler_modules-0.5')
Exemple #12
0
 def clean(self):
     remove_directory('/tmp/gnome-common')
     remove_directory('/tmp/gnome-common-2.16')
     remove_directory('/tmp/octopus/')
     remove_directory('/tmp/atunes')
Exemple #13
0
 def clean(self):
     remove_directory('/tmp/cpufrequtils')
     remove_directory('/tmp/pciutils')
     remove_directory('/tmp/libspectre')
Exemple #14
0
 def clean(self):
     remove_directory('/tmp/poppler')
     remove_directory('/tmp/poppler-0.5')
     remove_directory('/tmp/poppler_modules-0.5')