def create_storable_batch(self, storable=None, batch_number=u'1'): from stoqlib.domain.product import StorableBatch if not storable: storable = self.create_storable() return StorableBatch(store=self.store, storable=storable, batch_number=batch_number)