diff options
Diffstat (limited to 'test/test_dodai.py')
-rw-r--r-- | test/test_dodai.py | 13 |
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 | ||
18 | import unittest | 18 | import sys |
19 | import os | 19 | import os |
20 | import unittest | ||
21 | path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..')) | ||
22 | sys.path.append(path) | ||
20 | from dodai import Configure | 23 | from dodai import Configure |
21 | 24 | ||
22 | class TestConfigure(unittest.TestCase): | 25 | class 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 | |||