Пример #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
Пример #3
0
 def test_three_item_list(self):
     rindex(1, [1, 2, 1, 2]) == 2
Пример #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