Esempio n. 1
0
 def test_set_network(self):
     """
     Test to configure Network
     """
     mock = MagicMock(return_value=True)
     with patch.object(drac, "__execute_cmd", mock):
         self.assertTrue(drac.set_network("ip", "netmask", "gateway"))
Esempio n. 2
0
 def test_set_network(self):
     '''
     Test to configure Network
     '''
     mock = MagicMock(return_value=True)
     with patch.object(drac, '__execute_cmd', mock):
         self.assertTrue(drac.set_network('ip', 'netmask', 'gateway'))
Esempio n. 3
0
 def test_set_network(self):
     '''
     Test to configure Network
     '''
     mock = MagicMock(return_value=True)
     with patch.object(drac, '__execute_cmd', mock):
         self.assertTrue(drac.set_network('ip', 'netmask', 'gateway'))