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)
def clean(self): remove_directory('/tmp/gnome-common') remove_directory('/tmp/gnome-common-2.16') remove_directory('/tmp/octopus/') remove_directory('/tmp/atunes')
def tearDown(self): remove_directory(self.test_project_directory) remove_directory(self.test_project_default_directory)
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)
def tearDown(self): remove_directory(self.test_service_default_directory) remove_directory(self.test_service_directory)
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')
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')
def clean (self): remove_directory ('/tmp/cpufrequtils') remove_directory ('/tmp/pciutils') remove_directory ('/tmp/libspectre')
def clean(self): remove_directory('/tmp/poppler') remove_directory('/tmp/poppler-0.5') remove_directory('/tmp/poppler_modules-0.5')
def clean(self): remove_directory('/tmp/cpufrequtils') remove_directory('/tmp/pciutils') remove_directory('/tmp/libspectre')