Include for test file

This commit is contained in:
Nicolas Hennion 2014-03-29 10:15:08 +01:00
parent ec604a5c4e
commit 4a501348af
1 changed files with 12 additions and 0 deletions

View File

@ -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):
"""
...