Lines Matching refs:rindex
299 self.assertRaises(ValueError, 'abcdefghiabc'.rindex, 'hib')
300 self.assertRaises(ValueError, 'defghiabc'.rindex, 'def', 1)
301 self.assertRaises(ValueError, 'defghiabc'.rindex, 'abc', 0, -1)
302 self.assertRaises(ValueError, 'abcdefghi'.rindex, 'ghi', 0, 8)
303 self.assertRaises(ValueError, 'abcdefghi'.rindex, 'ghi', 0, -1)
308 self.assertRaises(ValueError, ('a' * 100).rindex, '\u0102')
309 self.assertRaises(ValueError, ('a' * 100).rindex, '\U00100304')
310 self.assertRaises(ValueError, ('\u0102' * 100).rindex, '\U00100304')
314 self.assertRaises(ValueError, ('a' * 100).rindex, '\u0102a')
315 self.assertRaises(ValueError, ('a' * 100).rindex, '\U00100304a')
316 self.assertRaises(ValueError, ('\u0102' * 100).rindex, '\U00100304\u0102')