def test_delivery_facility_received_quantities_reported(self):
        with localize('sw'):
            response = unicode(DELIVERED_CONFIRM)

        sohs = {
            'jd': 400,
            'mc': 569
        }
        script = """
            5551234 > delivered jd 400 mc 569
            5551234 < {0}
            """.format({'reply_list': 'jd 400, mc 569'} % response)
        self.run_script(script)
        self.assertEqual(2, StockState.objects.count())
        for ps in StockState.objects.all().order_by('pk'):
            self.assertEqual(self.loc1.linked_supply_point().get_id, ps.case_id)
            self.assertEqual(ps.stock_on_hand, sohs[ps.sql_product.code])
dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/tests/handlers/delivered.py/ILSDeliveredTest.test_delivery_facility_received_quantities_reported/swapped operands of `%`