diff --git a/test/glances_test.py b/test/glances_test.py index 96c22ded..56a13fd2 100644 --- a/test/glances_test.py +++ b/test/glances_test.py @@ -21,7 +21,15 @@ Tests suite... """ +import os +import sys import unittest + +test_root = os.path.dirname(os.path.abspath(__file__)) +os.chdir(test_root) +sys.path.insert(0, os.path.dirname(test_root)) +sys.path.insert(0, test_root) + import glances class testGlances(unittest.TestCase): @@ -29,6 +37,10 @@ class testGlances(unittest.TestCase): Test glances class """ + def setUp(self): + self.core = glances.GlancesMain() + print dir(self.core) + def test_init(self): """ ...