mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-01 14:04:50 +03:00
53 lines
1.3 KiB
Python
53 lines
1.3 KiB
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Glances - An eye on your system
|
|
#
|
|
# Copyright (C) 2014 Nicolargo <nicolas@nicolargo.com>
|
|
#
|
|
# Glances is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Glances is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
"""
|
|
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):
|
|
"""
|
|
Test glances class
|
|
"""
|
|
|
|
def setUp(self):
|
|
self.core = glances.GlancesMain()
|
|
print dir(self.core)
|
|
|
|
def test_init(self):
|
|
"""
|
|
...
|
|
"""
|
|
self.assertEqual(0, 0)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|