def test_serialise_str_helper(): c1 = framecurve.parse_str("1\t2") o1 = framecurve.serialize_str(c1) expected = """# http://framecurve.org/specification-v1\r\n# at_frame\tuse_frame_of_source\r\n1\t2.00000\r\n""" assert o1 == expected
def test_parse_str_helper(): c1 = framecurve.parse_str("1\t2") print c1 assert c1[0].at == 1 assert c1[0].value == 2.0