Test_Arc2_meth
Bases: object
object
unittest for Arc2 methods
test_check_Point
Check that you can detect a one point arc
test_check_Angle
Check that you can detect null angle
test_dicretize
Check that you can discretize an arc2
test_discretize_Point_error
Check that dicretize can detect a one point arc2
test_discretize_Angle_error
Check that discretize can detect a null angle arc2
test_discretize_Nb_error
Check that discretize can detect a wrong arg
test_discretize_Nb_Type_error
test_comp_length
Check that you the length return by comp_length is correct
test_comp_length_Point_error
Check that comp_length can detect a one point arc2
test_comp_length_angle_error
Check that comp_length can detect a null angle arc2
test_comp_radius
Check that the radius is correct
test_get_center
Check that the center is returned correctly
test_get_end
Check that the end is correct
test_get_middle
Check that the middle is computed correctly
test_get_middle_zero
Checking that get_middle() can return 0
test_rotate
Check that you can rotate the arc2
test_translate
Check that you can translate the arc2
test_get_angle
Check that the arc2 computed angle is correct
test_split_half
Check that the arc2 split is correct
test_arc_rotate_error
Check that the arc3 rotate raise an error
test_translate_error
Check that you can’t translate an arc2 when an error occurs