~izidor/gtg/documentation

« back to all changes in this revision

Viewing changes to tests/tools/test_networkmanager.py

  • Committer: Izidor Matušov
  • Date: 2014-03-09 15:11:59 UTC
  • Revision ID: izidor.matusov@gmail.com-20140309151159-t5ldo0a990em5989
Clean docstrings

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
# -----------------------------------------------------------------------------
19
19
 
20
 
""" Tests for Network Manager """
21
 
 
22
 
import unittest
 
20
from unittest import TestCase
23
21
 
24
22
from GTG.tools.networkmanager import is_connection_up
25
23
 
26
24
 
27
 
class TestNetworkManager(unittest.TestCase):
28
 
    """ Test network manager tool code """
 
25
class TestNetworkManager(TestCase):
29
26
 
30
 
    def test_is_connection_up_dont_throw_exception(self):
31
 
        """ is_connection_up() returns a boolean value and
32
 
        don't throw any exception """
 
27
    def test_is_connection_up_and_doesnt_throw_exception(self):
33
28
        self.assertIn(is_connection_up(), [True, False])