aboutsummaryrefslogtreecommitdiff
path: root/test/test_dodai.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_dodai.py')
-rw-r--r--test/test_dodai.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/test_dodai.py b/test/test_dodai.py
index b95f71f..fbd4667 100644
--- a/test/test_dodai.py
+++ b/test/test_dodai.py
@@ -15,8 +15,11 @@
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
18import unittest 18import sys
19import os 19import os
20import unittest
21path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
22sys.path.append(path)
20from dodai import Configure 23from dodai import Configure
21 24
22class TestConfigure(unittest.TestCase): 25class TestConfigure(unittest.TestCase):
@@ -29,11 +32,13 @@ class TestConfigure(unittest.TestCase):
29 self.obj = Configure('test472j02ju-sfgj', config_files=[filename]) 32 self.obj = Configure('test472j02ju-sfgj', config_files=[filename])
30 33
31 def test_results(self): 34 def test_results(self):
32 files = self.obj.files._files 35 files = self.obj.files.files
33 print files
34 self.assertTrue(len(files) == 1) 36 self.assertTrue(len(files) == 1)
35 37
36 def test_add_files(self): 38 def test_add_files(self):
37 self.obj._add_files(self.filename) 39 self.obj._add_files(self.filename)
38 files = self.obj.files._files 40 files = self.obj.files.files
39 self.assertTrue(len(files) == 1) 41 self.assertTrue(len(files) == 1)
42
43
44