print '[test] get_event_fee' response = constantcontact.get_event_fee(event_response, fee_response) if printout and response: print json.dumps(response, indent = 4, sort_keys = True) raw_input('press enter for next test') fee_response.set_fee(5) print '[test] update_event_fee' response = constantcontact.update_event_fee(event_response, fee_response) if printout and response: print json.dumps(response, indent = 4, sort_keys = True) raw_input('press enter for next test') print '[test] delete_event_fee' response = constantcontact.delete_event_fee(event_response, fee_response) if printout and response: print response raw_input('press enter for next test') pc = Promocode() pc.set_code_name('Test_Code') pc.set_code_type('DISCOUNT') pc.set_discount_percent(10) pc.set_discount_scope('ORDER_TOTAL') pc.set_is_paused(False) pc.set_quantity_total(-1) print '[test] post_event_promocodes' response = constantcontact.post_event_promocodes(event_response, pc)