From 8ffa6e6e714a560d17e13f909625f143338e785b Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 12 Oct 2009 21:16:08 +0000 Subject: LP 439980 : Renaming nodes for XMLSerializer, Moving properties tests to /tmp, Removing commented code in filters --- (limited to 'tests/propertiestests.py') diff --git a/tests/propertiestests.py b/tests/propertiestests.py index 389671d..03e7814 100644 --- a/tests/propertiestests.py +++ b/tests/propertiestests.py @@ -501,12 +501,18 @@ class TEnumPropertyTest(unittest.TestCase): try_wrong_values(self.obj) class TFilePropertyTest(unittest.TestCase): + root_folder = "/tmp/tutorius" + def setUp(self): + try: + os.mkdir(self.root_folder) + except: + pass # Create some sample, unique files for the tests - self.temp_filename1 = "sample_file1_" + str(uuid.uuid1()) + ".txt" + self.temp_filename1 = os.path.join(self.root_folder, "sample_file1_" + str(uuid.uuid1()) + ".txt") self.temp_file1 = file(self.temp_filename1, "w") self.temp_file1.close() - self.temp_filename2 = "sample_file2_" + str(uuid.uuid1()) + ".txt" + self.temp_filename2 = os.path.join(self.root_folder, "sample_file2_" + str(uuid.uuid1()) + ".txt") self.temp_file2 = file(self.temp_filename2, "w") self.temp_file2.close() -- cgit v0.9.1