def test_has_duplicates_fails(self, array, error): with pytest.raises(error): ListOperations.has_duplicates(array)
def test_has_duplicates(self, array, result): assert ListOperations.has_duplicates(array) is result