def setUp(self): super(TestLeaseOfferShow, self).setUp() self.lease_mock.offer.get.return_value = \ lease_fakes.FakeLeaseResource(None, copy.deepcopy(lease_fakes.OFFER)) self.cmd = lease_offer.ShowLeaseOffer(self.app, None)
def setUp(self): super(TestLeaseContractList, self).setUp() self.lease_mock.contract.list.return_value = [ lease_fakes.FakeLeaseResource(None, copy.deepcopy(lease_fakes.CONTRACT)) ] self.cmd = lease_contract.ListLeaseContract(self.app, None)
def setUp(self): super(TestLeaseContractShow, self).setUp() self.lease_mock.contract.get.return_value = \ lease_fakes.FakeLeaseResource(None, copy.deepcopy(lease_fakes.CONTRACT)) self.cmd = lease_contract.ShowLeaseContract(self.app, None)
def setUp(self): super(TestLeaseOfferList, self).setUp() self.lease_mock.offer.list.return_value = [ lease_fakes.FakeLeaseResource( None, copy.deepcopy(lease_fakes.OFFER)) ] self.cmd = lease_offer.ListLeaseOffer(self.app, None)
def setUp(self): super(TestCreateLeaseContract, self).setUp() self.lease_mock.contract.create.return_value = ( lease_fakes.FakeLeaseResource(None, copy.deepcopy(lease_fakes.CONTRACT))) # Get the command object to test self.cmd = lease_contract.CreateLeaseContract(self.app, None)
def setUp(self): super(TestLeaseOfferCreate, self).setUp() self.lease_mock.offer.create.return_value = ( lease_fakes.FakeLeaseResource( None, copy.deepcopy(lease_fakes.OFFER) )) # Get the command object to test self.cmd = lease_offer.CreateLeaseOffer(self.app, None)