def test_match_bbox_word_level_several_columns_when_line_contains(self):

        # Expecting match at word level when the line contains the value and there are several columns to look at
        result, _, _ = autolabeling.match_bbox(self.line_match4, "",
                                               self.gt_processed3,
                                               self.compare_methods2, True)

        assert result == True
    def test_match_bbox_when_wrong_compare_methods(self):

        # Expecting no match at word level when the compare method is wrong
        result, _, _ = autolabeling.match_bbox(self.line_match3, "",
                                               self.gt_processed3,
                                               self.compare_methods1, True)

        assert result == False
    def test_match_bbox_line_level_several_columns_when_line_equal(self):

        # Expecting match at line level when the line is equal to the value and there are several columns to look at
        result, _, _ = autolabeling.match_bbox(self.line_match3, "",
                                               self.gt_processed3,
                                               self.compare_methods2, False)

        assert result == True
    def test_match_bbox_word_level_one_column_when_line_contains(self):

        # Expecting match at word level when the line contains the value and there's only one column to look at
        result, _, _ = autolabeling.match_bbox(self.line_match2, "",
                                               self.gt_processed2,
                                               self.compare_methods1, True)

        assert result == True
    def test_match_bbox_line_level_one_column_when_line_equal(self):

        # Expecting match at line level when the line is equal to the value and there's only one column to look at
        result, _, _ = autolabeling.match_bbox(self.line_match1, "",
                                               self.gt_processed1,
                                               self.compare_methods1, False)

        assert result == True
    def test_match_bbox_when_no_match(self):

        # Expecting no match at word level when the line and next line are not a match
        result, _, _ = autolabeling.match_bbox(self.line_nomatch,
                                               self.line_nomatch,
                                               self.gt_processed1,
                                               self.compare_methods1, True)

        assert result == False
    def test_match_next_line_one_column_when_next_line_contains(self):

        # Expecting match at line level when the next line is equal to the value and there's only one column to look at
        result, _, _ = autolabeling.match_bbox(self.line_nomatch,
                                               self.line_match1,
                                               self.gt_processed1,
                                               self.compare_methods1, True)

        assert result == True