def setUp(self): self.path = '/tmp/prop_file' f = open(self.path, 'w') f.write('# qst e\' una prova\n') f.write('var = "value"') f.close() self.prop = Property(self.path) self.path_sess = '/tmp/prop_file_session' self.path_sess_dir = '/tmp/prop_file_session.d' f = open(self.path_sess, 'w') f.write('# qst e\' una prova\n') f.close() os.mkdir(self.path_sess_dir) f_s = open(self.path_sess_dir + '/test', 'w') f_s.write('var = 45') f_s.close() self.prop_sess = Property(self.path_sess, True)