aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSix <unknown>2010-05-01 22:50:54 -0400
committerSix <unknown>2010-05-01 22:50:54 -0400
commit6bb04aa61e02cecbe923def0e24002622db5fc0c (patch)
tree22d6e65d877064ca898c68005ef8068ab0c0de42
parent57c0e1b947d050d94013f83d4d677c8535a35350 (diff)
downloaddodai-macsupport-6bb04aa61e02cecbe923def0e24002622db5fc0c.tar.bz2
dodai-macsupport-6bb04aa61e02cecbe923def0e24002622db5fc0c.tar.xz
dodai-macsupport-6bb04aa61e02cecbe923def0e24002622db5fc0c.zip
fixed test_dodai.testConfigure
-rw-r--r--dodai/config/sections.py1
-rw-r--r--test/test_config/test_databases.py1
-rw-r--r--test/test_dodai.py7
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):
139 """ 139 """
140 return self.___title___ 140 return self.___title___
141 141
142
143 def __setattr__(self, key, value): 142 def __setattr__(self, key, value):
144 if key.startswith('___') and key.endswith('___'): 143 if key.startswith('___') and key.endswith('___'):
145 object.__setattr__(self, key, value) 144 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 @@
15# You should have received a copy of the GNU General Public License 15# You should have received a copy of the GNU General Public License
16# along with Dodai. If not, see <http://www.gnu.org/licenses/>. 16# along with Dodai. If not, see <http://www.gnu.org/licenses/>.
17 17
18
19import sys 18import sys
20import os 19import os
21import unittest 20import 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):
26 path = os.path.join(path, 'config') 26 path = os.path.join(path, 'config')
27 filename = os.path.join(path, 'connection') 27 filename = os.path.join(path, 'connection')
28 self.filename = filename 28 self.filename = filename
29 self.obj = Configure('test', config_files=[filename]) 29 self.obj = Configure('test472j02ju-sfgj', config_files=[filename])
30 30
31 def test_results(self): 31 def test_results(self):
32 files = self.obj.config_files 32 files = self.obj.files._files
33 print files
33 self.assertTrue(len(files) == 1) 34 self.assertTrue(len(files) == 1)
34 35
35 def test_add_files(self): 36 def test_add_files(self):
36 self.obj._add_files(self.filename) 37 self.obj._add_files(self.filename)
37 files = self.obj.config_files 38 files = self.obj.files._files
38 self.assertTrue(len(files) == 1) 39 self.assertTrue(len(files) == 1)