Lines Matching refs:rindex
623 self.assertEqual(b.rindex(b'ss'), 5)
624 self.assertRaises(ValueError, b.rindex, b'w')
625 self.assertRaises(ValueError, b.rindex, b'mississippian')
627 self.assertEqual(b.rindex(i), 10)
628 self.assertRaises(ValueError, b.rindex, w)
630 self.assertEqual(b.rindex(b'ss', 3), 5)
631 self.assertEqual(b.rindex(b'ss', 0, 6), 2)
633 self.assertEqual(b.rindex(i, 1, 3), 1)
634 self.assertEqual(b.rindex(i, 3, 9), 7)
635 self.assertRaises(ValueError, b.rindex, w, 1, 3)
825 self.assertEqual(3, b.rindex(l, None))
826 self.assertEqual(3, b.rindex(l, -2, None))
827 self.assertEqual(2, b.rindex(l, None, -2))
828 self.assertEqual(0, b.rindex(h, None, None))
848 for method in (b.count, b.find, b.index, b.rfind, b.rindex):
863 self.assertRaisesRegex(TypeError, r'\brindex\b', b.rindex,