cloudstack/systemvm/test/python/TestCsInterface.py
Ian Southam bdda01d269 Countless bug fixes, mostly do do with VR redundancy
Also added some new unit tests and adjusted the code to make them work
2015-03-16 11:38:18 +01:00

22 lines
556 B
Python

import unittest
from cs.CsAddress import CsInterface
from cs.CsConfig import CsConfig
from cs.CsDatabag import CsCmdLine
import merge
class TestCsInterface(unittest.TestCase):
def setUp(self):
merge.DataBag.DPATH = "."
csconfig = CsConfig()
self.cmdline = CsCmdLine("cmdline", csconfig)
csconfig.cl = self.cmdline
self.csinterface = CsInterface({}, csconfig)
def test_get_gateway(self):
self.assertTrue(self.csinterface.get_gateway() == "1.2.3.4")
if __name__ == '__main__':
unittest.main()