def setUp(self): super(TestFlavorShow, self).setUp() # Return value of _find_resource() self.flavors_mock.find.return_value = self.flavor self.flavors_mock.get.side_effect = exceptions.NotFound(None) self.cmd = flavor.ShowFlavor(self.app, None)
def setUp(self): super(TestFlavorShow, self).setUp() # Return value of utils.find_resource() self.flavors_mock.get.return_value = self.flavor self.cmd = flavor.ShowFlavor(self.app, None)
def setUp(self): super(TestFlavorShow, self).setUp() # Return value of _find_resource() self.sdk_client.find_flavor.return_value = self.flavor self.sdk_client.get_flavor_access.return_value = [self.flavor_access] self.cmd = flavor.ShowFlavor(self.app, None)