Home
last modified time | relevance | path

Searched refs:Indexable (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_struct.py297 class Indexable(object): class
339 for obj in (Indexable(0), Indexable(10), Indexable(17),
340 Indexable(42), Indexable(100), Indexable(127)):
348 for obj in (Indexable('a'), Indexable(u'b'), Indexable(None),
349 Indexable({'a': 1}), Indexable([1, 2, 3])):
Dtest_bytes.py32 class Indexable: class
68 b = self.type2test([Indexable(), Indexable(1), Indexable(254),
69 Indexable(255)])
71 self.assertRaises(ValueError, self.type2test, [Indexable(-1)])
72 self.assertRaises(ValueError, self.type2test, [Indexable(256)])
514 b[0] = Indexable(10)
532 b[0] = Indexable(-1)
706 a.extend([Indexable(ord('a'))])
723 b.remove(Indexable(ord('e')))
756 b.append(Indexable(ord('A')))
[all …]