From 6bb04aa61e02cecbe923def0e24002622db5fc0c Mon Sep 17 00:00:00 2001 From: Six Date: Sat, 1 May 2010 22:50:54 -0400 Subject: fixed test_dodai.testConfigure --- dodai/config/sections.py | 1 - test/test_config/test_databases.py | 1 - test/test_dodai.py | 7 ++++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dodai/config/sections.py b/dodai/config/sections.py index 69602fb..2b08587 100644 --- a/dodai/config/sections.py +++ b/dodai/config/sections.py @@ -139,7 +139,6 @@ class ConfigSection(object): """ return self.___title___ - def __setattr__(self, key, value): if key.startswith('___') and key.endswith('___'): object.__setattr__(self, key, value) diff --git a/test/test_config/test_databases.py b/test/test_config/test_databases.py index 9fc6f68..84a476e 100644 --- a/test/test_config/test_databases.py +++ b/test/test_config/test_databases.py @@ -15,7 +15,6 @@ # You should have received a copy of the GNU General Public License # along with Dodai. If not, see . - import sys import os import unittest diff --git a/test/test_dodai.py b/test/test_dodai.py index a521a38..b95f71f 100644 --- a/test/test_dodai.py +++ b/test/test_dodai.py @@ -26,13 +26,14 @@ class TestConfigure(unittest.TestCase): path = os.path.join(path, 'config') filename = os.path.join(path, 'connection') self.filename = filename - self.obj = Configure('test', config_files=[filename]) + self.obj = Configure('test472j02ju-sfgj', config_files=[filename]) def test_results(self): - files = self.obj.config_files + files = self.obj.files._files + print files self.assertTrue(len(files) == 1) def test_add_files(self): self.obj._add_files(self.filename) - files = self.obj.config_files + files = self.obj.files._files self.assertTrue(len(files) == 1) -- cgit v1.2.3