mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
21 lines
448 B
Python
21 lines
448 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, mock_cshelper, mock_dnsmasq):
|
|
csdhcp = CsDhcp({}, None)
|
|
self.assertTrue(csdhcp is not None)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|