test_Arc2_meth (method)

class Test_Arc2_meth[source]

Bases: object

unittest for Arc2 methods

test_check_Point()[source]

Check that you can detect a one point arc

test_check_Angle()[source]

Check that you can detect null angle

test_dicretize(test_dict)[source]

Check that you can discretize an arc2

test_discretize_Point_error()[source]

Check that dicretize can detect a one point arc2

test_discretize_Angle_error()[source]

Check that discretize can detect a null angle arc2

test_discretize_Nb_error()[source]

Check that discretize can detect a wrong arg

test_discretize_Nb_Type_error()[source]

Check that discretize can detect a wrong arg

test_comp_length(test_dict)[source]

Check that you the length return by comp_length is correct

test_comp_length_Point_error()[source]

Check that comp_length can detect a one point arc2

test_comp_length_angle_error()[source]

Check that comp_length can detect a null angle arc2

test_comp_radius()[source]

Check that the radius is correct

test_get_center()[source]

Check that the center is returned correctly

test_get_end()[source]

Check that the end is correct

test_get_middle(test_dict)[source]

Check that the middle is computed correctly

test_get_middle_zero()[source]

Checking that get_middle() can return 0

test_rotate(test_dict)[source]

Check that you can rotate the arc2

test_translate(test_dict)[source]

Check that you can translate the arc2

test_get_angle(test_dict)[source]

Check that the arc2 computed angle is correct

test_split_half(test_dict)[source]

Check that the arc2 split is correct

test_arc_rotate_error()[source]

Check that the arc3 rotate raise an error

test_translate_error()[source]

Check that you can’t translate an arc2 when an error occurs