def setUp(self): super(TestSetRouter, self).setUp() self.network.update_router = mock.Mock(return_value=None) self.network.find_router = mock.Mock(return_value=self._router) # Get the command object to test self.cmd = router.SetRouter(self.app, self.namespace)
def setUp(self): super(TestSetRouter, self).setUp() self.network.router_add_gateway = mock.Mock() self.network.update_router = mock.Mock(return_value=None) self.network.set_tags = mock.Mock(return_value=None) self.network.find_router = mock.Mock(return_value=self._router) self.network.find_network = mock.Mock(return_value=self._network) self.network.find_subnet = mock.Mock(return_value=self._subnet) # Get the command object to test self.cmd = router.SetRouter(self.app, self.namespace)