Lines Matching refs:rindex
687 self.assertEqual(b.rindex(b'ss'), 5)
688 self.assertRaises(ValueError, b.rindex, b'w')
689 self.assertRaises(ValueError, b.rindex, b'mississippian')
691 self.assertEqual(b.rindex(i), 10)
692 self.assertRaises(ValueError, b.rindex, w)
694 self.assertEqual(b.rindex(b'ss', 3), 5)
695 self.assertEqual(b.rindex(b'ss', 0, 6), 2)
697 self.assertEqual(b.rindex(i, 1, 3), 1)
698 self.assertEqual(b.rindex(i, 3, 9), 7)
699 self.assertRaises(ValueError, b.rindex, w, 1, 3)
889 self.assertEqual(3, b.rindex(l, None))
890 self.assertEqual(3, b.rindex(l, -2, None))
891 self.assertEqual(2, b.rindex(l, None, -2))
892 self.assertEqual(0, b.rindex(h, None, None))
912 for method in (b.count, b.find, b.index, b.rfind, b.rindex):
927 self.assertRaisesRegex(TypeError, r'\brindex\b', b.rindex,