def addNetwork(self, bridge, options): return configNetwork.addNetwork(bridge, **options)
def _addNetworkWithExc(self, netName, opts, errCode): with self.assertRaises(neterrors.ConfigNetworkError) as cneContext: configNetwork.addNetwork(netName, **opts) self.assertEqual(cneContext.exception.errCode, errCode)