def test_different_file_diff(self): """Tests that when two different files are used in the difference method, the output is a list with more than one value.""" ann_1 = Annotations(self.ann_path_1) ann_2 = Annotations(self.ann_path_2) result = ann_1.difference(ann_2) self.assertGreater(len(result), 0)
def test_difference(self): """Tests that when a given Annotations object uses the diff() method with another Annotations object created from the same source file, that it returns an empty list.""" ann = Annotations(self.ann_path_1) result = ann.difference(ann) self.assertFalse(result)