cloudstack/systemvm/test/python/TestCsRedundant.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

24 lines
548 B
Python

import unittest
from cs.CsRedundant import CsRedundant
from cs.CsConfig import CsConfig
from cs.CsDatabag import CsCmdLine
import merge
class TestCsRedundant(unittest.TestCase):
def setUp(self):
merge.DataBag.DPATH = "."
self.cmdline = CsCmdLine("cmdline", {})
def test_init(self):
csconfig = CsConfig()
csconfig.cl = self.cmdline
csconfig.set_address()
csredundant = CsRedundant(csconfig)
self.assertTrue(csredundant is not None)
if __name__ == '__main__':
unittest.main()