def test_Path_c_bezier_adds_smooth_bezier_command_if_no_first_point(): path = Path((0, 1), style='xyz') path.c_bezier(None, (3, 4), (5, 6)) assert str(path) == '<path d="M 0 1 S 3 4, 5 6" style="xyz"/>\n'
def test_Path_c_bezier_adds_a_relative_cubic_bezier_command_to_the_path(): path = Path((0, 1), style='xyz') path.c_bezier((1, 2), (3, 4), (5, 6), relative=True) assert str(path) == '<path d="M 0 1 c 1 2, 3 4, 5 6" style="xyz"/>\n'