예제 #1
0
 def offer(self, price, energy, seller, original_offer_price=None,
           seller_origin=None):
     offer = Offer('id', price, energy, seller, original_offer_price,
                   seller_origin=seller_origin)
     self.created_offers.append(offer)
     offer.id = 'id'
     return offer
 def offer(self,
           price,
           energy,
           seller,
           original_offer_price=None,
           seller_origin=None,
           seller_origin_id=None,
           seller_id=None,
           attributes=None,
           requirements=None):
     offer = Offer("id",
                   pendulum.now(),
                   price,
                   energy,
                   seller,
                   seller_origin=seller_origin,
                   seller_origin_id=seller_origin_id,
                   seller_id=seller_id,
                   attributes=attributes,
                   requirements=requirements)
     self.created_offers.append(offer)
     offer.id = "id"
     return offer
 def offer(self, price, energy, seller, market=None):
     offer = Offer('id', price, energy, seller, market)
     self.created_offers.append(offer)
     offer.id = 'id'
     return offer