def test_package(package): clear_tests() try: m = __import__(package) except: print('%s' % package) print('-' * (len(package))) print('** Could not import') raise if have_tests(): print('%s' % package) print('-' * (len(package))) run_tests()
msg = cs_resp_err.msg # def cb_resp_int(self, cs_resp_int): value = cs_resp_int.value # def cb_resp_arr_inc(self, cs_resp_arr_head): # self.events.append( ('arr_head', '') ) def cb_resp_arr_dec(self, cs_resp_arr_tail): # self.events.append( ('arr_tail', '') ) @test def should_parse_message_to_structure(): r = Receiver() # rail_resp_assembler = rail_resp_assembler_new( cb_resp_head=r.cb_resp_head, cb_resp_tail=r.cb_resp_tail, cb_resp_str=r.cb_resp_str, cb_resp_err=r.cb_resp_err, cb_resp_int=r.cb_resp_int, cb_resp_arr_inc=r.cb_resp_arr_inc, cb_resp_arr_dec=r.cb_resp_arr_dec) # return True if __name__ == '__main__': run_tests()