def test__format_rts(): rts = ['[667]'] rts_strf = compile_data._format_rts(rts) assert isinstance(rts_strf, list) assert len(rts_strf) == 1 for rt in rts_strf: assert isinstance(rt, int)
def test__format_rts_with_data(): pid = "011" sart_block = get_sart_trial_block(pid) rt_strf = compile_data._format_rts(sart_block['rt']) assert isinstance(rt_strf, list) assert len(rt_strf) == 59 for rt in rt_strf: assert isinstance(rt, int)