Home
last modified time | relevance | path

Searched refs:Indexable (Results 1 – 4 of 4) 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)])
537 b[0] = Indexable(10)
555 b[0] = Indexable(-1)
729 a.extend([Indexable(ord('a'))])
746 b.remove(Indexable(ord('e')))
779 b.append(Indexable(ord('A')))
[all …]
/external/python/cpython3/Lib/test/
Dtest_struct.py269 class Indexable(object): class
302 for obj in (Indexable(0), Indexable(10), Indexable(17),
303 Indexable(42), Indexable(100), Indexable(127)):
311 for obj in (Indexable(b'a'), Indexable('b'), Indexable(None),
312 Indexable({'a': 1}), Indexable([1, 2, 3])):
Dtest_bytes.py36 class Indexable: class
134 b = self.type2test([Indexable(), Indexable(1), Indexable(254),
135 Indexable(255)])
137 self.assertRaises(ValueError, self.type2test, [Indexable(-1)])
138 self.assertRaises(ValueError, self.type2test, [Indexable(256)])
1199 b[0] = Indexable(10)
1217 b[0] = Indexable(-1)
1415 a.extend([Indexable(ord('a'))])
1432 b.remove(Indexable(ord('e')))
1465 b.append(Indexable(ord('A')))
[all …]