def test_item_not_in_list(self): exceptionRaised = False try: rindex(0, [1]) except ValueError: exceptionRaised = True assert exceptionRaised
def test_three_item_list(self): rindex(1, [1, 2, 1, 2]) == 2
def test_one_item_list(self): rindex(1, [1]) == 0