Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/z/a/zato-HEAD/code/zato-common/test/zato/common/pubsub/test_full_path.py   zato(Download)
        if crm_needs_billing1_id:
            in_flight_crm_data_msg1 = in_flight_crm_data[msg_billing1_id]
            self.assertLess(arrow.get(in_flight_crm_data_msg1), now)
            eq_(sorted(in_flight_crm_ids), sorted(in_flight_crm_data.keys()))
        else:
            self.assertNotIn(msg_billing1_id, in_flight_crm_data)
 
        if crm_needs_billing2_id:
            in_flight_crm_data_msg2 = in_flight_crm_data[msg_billing2_id]
            self.assertLess(arrow.get(in_flight_crm_data_msg2), now)
        if billing_needs_crm1_id:
            in_flight_billing_data_msg1 = in_flight_billing_data[msg_crm1_id]
            self.assertLess(arrow.get(in_flight_billing_data_msg1), now)
            eq_(sorted(in_flight_billing_ids), sorted(in_flight_billing_data.keys()))
        else:
            self.assertNotIn(msg_crm1_id, in_flight_billing_data)
 
        if billing_needs_crm2_id:
            in_flight_billing_data_msg2 = in_flight_billing_data[msg_crm2_id]
            self.assertLess(arrow.get(in_flight_billing_data_msg2), now)
        if erp_needs_billing1_id:
            in_flight_erp_data_msg1 = in_flight_erp_data[msg_billing1_id]
            self.assertLess(arrow.get(in_flight_erp_data_msg1), now)
            eq_(sorted(in_flight_erp_ids), sorted(in_flight_erp_data.keys()))
        else: