def test_transfer_dest_only(self): amounts = [(p._id, float(i*10)) for i, p in enumerate(self.products)] self.submit_xml_form(transfer_dest_only(amounts)) for product, amt in amounts: self.check_product_stock(self.sp, product, amt, amt)
def test_transfer_with_date(self): amounts = [(p._id, float(i * 10)) for i, p in enumerate(self.products)] self.submit_xml_form(transfer_dest_only(amounts), date_formatter=json_format_date) for product, amt in amounts: self.check_product_stock(self.sp, product, amt, amt)