Exemple #1
0
    def test_item_not_in_list(self):
        exceptionRaised = False

        try:
            rindex(0, [1])
        except ValueError:
            exceptionRaised = True

        assert exceptionRaised
	def test_item_not_in_list(self):
		exceptionRaised = False

		try:
			rindex(0, [1])
		except ValueError:
			exceptionRaised = True

		assert exceptionRaised
Exemple #3
0
 def test_three_item_list(self):
     rindex(1, [1, 2, 1, 2]) == 2
Exemple #4
0
 def test_one_item_list(self):
     rindex(1, [1]) == 0
	def test_three_item_list(self):
		rindex(1, [1, 2, 1, 2]) == 2
	def test_one_item_list(self):
		rindex(1, [1]) == 0