mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
24 lines
548 B
Python
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()
|