diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-10-12 21:16:08 (GMT) |
---|---|---|
committer | mike <michael.jmontcalm@gmail.com> | 2009-10-12 21:16:08 (GMT) |
commit | 8ffa6e6e714a560d17e13f909625f143338e785b (patch) | |
tree | 65e4cfe7f5be82566f82dcd1ef78a72336b707c6 /tests/propertiestests.py | |
parent | 762835ca504b2c1a4425e115742fc41dee1f3a1b (diff) |
LP 439980 : Renaming nodes for XMLSerializer, Moving properties tests to /tmp, Removing commented code in filters
Diffstat (limited to 'tests/propertiestests.py')
-rw-r--r-- | tests/propertiestests.py | 10 |
1 files changed, 8 insertions, 2 deletions
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() |