def test_find_similar_in_repo_similar_no_match_2(self): image = np.array([[1,1],[1,1]]) similar, different_size, no_match = find_similar_in_repo(image, self.repo, size_tolerance=0.2) self.assertListEqual(sorted(no_match), sorted(['test_file_1', 'test_file_2', 'test_file_3']))
def test_find_similar_in_repo_similar_no_match(self): similar, different_size, no_match = find_similar_in_repo(self.image, self.repo, size_tolerance=0.2) self.assertListEqual(no_match, ['test_file_3'])