def test_network(self): ''' Test if it grab the current network settings ''' with patch('salt.modules.ilo.__execute_cmd', MagicMock(return_value={'Network Settings': {}})): self.assertDictEqual(ilo.network(), {'Network Settings': {}})
def test_network(self): """ Test if it grab the current network settings """ with patch( "salt.modules.ilo.__execute_cmd", MagicMock(return_value={"Network Settings": {}}), ): self.assertDictEqual(ilo.network(), {"Network Settings": {}})
def test_network(self): ''' Test if it grab the current network settings ''' self.assertDictEqual(ilo.network(), {'Network Settings': {}})