test_Segment_meth (method)

class Test_Segment_meth[source]

Bases: object

unittest for Segment methods

test_check()[source]

Check that you can detect a one point segment

test_dicretize(test_dict)[source]

Check that you can discretize a segment

test_discretize_Point_error()[source]

Check that dicretize can detect a one point segment

test_discretize_Nb_error()[source]

Check that you can detect a wrong argument

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 segment

test_get_middle()[source]

Check that you can compute the middle of the segment

test_rotate()[source]

Check that you can rotate the segment

test_translate()[source]

Check that you can translate the segment

test_split_half(test_dict)[source]

Check that the segment split is correct

test_is_on(test_dict)[source]

Check that the segment is_on_line method is correct

test_distance(test_dict)[source]

Check that the segment comp_distance method is correct

pytestmark = [Mark(name='METHODS', args=(), kwargs={})]