Example #1
0
    def test_cut_element_by_other_embedded(self):
        """Test the cut of element if the head is overlapping"""
        overlapped_embed = ['37.4', '69.49', 'PegasusA', '211',
                            '709', '+', '4e', '898', '956']

        assert deoverlap.cut_element_by_other(
            self.single_element[0], overlapped_embed) == []
Example #2
0
    def test_cut_element_by_other_tail(self):
        """Test the cut of element if the tail is overlapping"""
        overlapped_tail = ['37.4', '69.49', 'PegasusA', '1', '500',
                           '+', '4e', '400', '900']

        assert deoverlap.cut_element_by_other(
            self.single_element[0], overlapped_tail) == \
            ['15.6', '69.49', 'PegasusA', '1', '209', '+',
             '4e', '400', '609']
Example #3
0
    def test_cut_element_by_other_head(self):
        """Test the cut of element if the head is overlapping"""
        overlapped_head = ['37.4', '69.49', 'PegasusA', '699', '757',
                           '+', '4e', '898', '956']

        assert deoverlap.cut_element_by_other(
            self.single_element[0], overlapped_head) == \
            ['29.7', '69.49', 'PegasusA', '711', '757', '+',
             '4e', '910', '956']