mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
firewallrules implemented sperately from networkacl (ugly but best that can be done ATM) Some refactoring in CsDHCP as it made no sense to do it that way anymore processmonitoring implemented Domain not correctly sourced in VR
21 lines
429 B
Python
21 lines
429 B
Python
import unittest
|
|
import mock
|
|
from cs.CsDhcp import CsDhcp
|
|
from cs import CsHelper
|
|
import merge
|
|
|
|
|
|
class TestCsDhcp(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
merge.DataBag.DPATH = "."
|
|
|
|
# @mock.patch('cs.CsDhcp.CsHelper')
|
|
# @mock.patch('cs.CsDhcp.CsDnsMasq')
|
|
def test_init(self):
|
|
csdhcp = CsDhcp("dhcpentry", {})
|
|
self.assertTrue(csdhcp is not None)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|