Home
last modified time | relevance | path

Searched refs:type2test (Results 1 – 20 of 20) sorted by relevance

/third_party/python/Lib/test/
Dseq_tests.py100 type2test = None variable in CommonTest
107 u = self.type2test()
108 u0 = self.type2test(l0)
109 u1 = self.type2test(l1)
110 u2 = self.type2test(l2)
112 uu = self.type2test(u)
113 uu0 = self.type2test(u0)
114 uu1 = self.type2test(u1)
115 uu2 = self.type2test(u2)
117 v = self.type2test(tuple(u))
[all …]
Dlist_tests.py17 self.assertEqual(self.type2test([]), self.type2test())
20 a = self.type2test([1, 2, 3])
22 self.assertEqual(a, self.type2test([]))
25 a = self.type2test([1, 2, 3])
27 self.assertEqual(a, self.type2test([4, 5, 6]))
30 b = self.type2test(a)
49 a0 = self.type2test(l0)
50 a2 = self.type2test(l2)
64 a = self.type2test([])
66 a = self.type2test([a])
[all …]
Dtest_binascii.py20 type2test = bytes variable in BinASCIITest
28 self.data = self.type2test(self.rawdata)
50 a = b2a(self.type2test(raw))
51 res = a2b(self.type2test(a))
70 b = self.type2test(self.rawdata[i:i+MAX_BASE64])
75 a = self.type2test(line)
86 b = self.type2test(self.rawdata[i:i+MAX_BASE64])
108 a = self.type2test(line)
115 self.assertEqual(binascii.a2b_base64(self.type2test(fillers)), b'')
121 binascii.a2b_base64(self.type2test(data))
[all …]
Dtest_bytes.py50 b = self.type2test()
51 self.assertEqual(type(b), self.type2test)
52 self.assertEqual(b.__class__, self.type2test)
55 a = self.type2test(b"abcd")
62 b = self.type2test()
77 b = self.type2test(range(256))
82 b = self.type2test({42})
84 b = self.type2test({43, 45})
88 b = self.type2test(iter(range(256)))
93 b = self.type2test(i for i in range(256) if i % 2)
[all …]
Dtest_tuple.py19 type2test = tuple variable in TupleTest
258 a0 = self.type2test(l0)
259 a2 = self.type2test(l2)
349 data = self.type2test([4, 5, 6, 7])
355 self.assertEqual(self.type2test(it), self.type2test(data))
360 self.assertEqual(self.type2test(it), self.type2test(data)[1:])
363 data = self.type2test([4, 5, 6, 7])
369 self.assertEqual(self.type2test(it), self.type2test(reversed(data)))
374 self.assertEqual(self.type2test(it), self.type2test(reversed(data))[1:])
386 a = self.type2test([1, 2])
[all …]
Dtest_userlist.py8 type2test = UserList variable in UserListTest
13 u = self.type2test(l)
45 u = self.type2test([0, 1])
51 u = self.type2test([0, 1])
57 class T(self.type2test):
63 u = self.type2test([6, 8, 1, 9, 1])
Dtest_queue.py182 q = self.type2test()
193 q = self.type2test()
206 q = self.type2test(QUEUE_SIZE)
211 q = self.type2test(QUEUE_SIZE)
218 q = self.type2test(QUEUE_SIZE)
231 q = self.type2test(3)
245 self.type2test = self.queue.Queue
260 self.type2test = self.queue.LifoQueue
276 self.type2test = self.queue.PriorityQueue
421 self.q = self.type2test()
[all …]
Dmapping_tests.py13 type2test = None # which class is being tested (overwrite in subclasses) variable in BasicTestMappingProtocol
21 return self.type2test()
309 self.assertEqual(self.type2test(x=1, y=2), {"x": 1, "y": 2})
424 self.assertEqual(self.type2test.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
434 class dictlike(self.type2test): pass
440 class mydict(self.type2test):
450 class baddict1(self.type2test):
462 self.assertRaises(Exc, self.type2test.fromkeys, BadSeq())
464 class baddict2(self.type2test):
568 class mydict(self.type2test):
Dtest_dict_version.py13 type2test = dict variable in DictVersionTests
41 d = self.type2test(*args, **kw)
187 type2test = Dict variable in DictSubtypeVersionTests
Dtest_list.py8 type2test = list variable in ListTest
82 orig = self.type2test([4, 5, 6, 7])
118 orig = self.type2test([4, 5, 6, 7])
Dstring_tests.py30 type2test = None variable in BaseTest
42 return self.__class__.type2test(obj)
56 self.assertIs(type(self.fixtype("123")), self.type2test)
73 class subtype(self.__class__.type2test):
1046 a = self.type2test('DNSSEC')
1047 b = self.type2test('')
1464 t = self.type2test
Dtest_userstring.py15 type2test = UserString variable in UserStringTest
Dtest_unicode.py58 type2test = str variable in UnicodeTest
334 tbl = self.type2test.maketrans({'a': None, 'b': '<i>'})
337 tbl = self.type2test.maketrans('abc', 'xyz', 'd')
377 self.assertRaises(TypeError, self.type2test.maketrans)
378 self.assertRaises(ValueError, self.type2test.maketrans, 'abc', 'defg')
379 self.assertRaises(TypeError, self.type2test.maketrans, 2, 'def')
380 self.assertRaises(TypeError, self.type2test.maketrans, 'abc', 2)
381 self.assertRaises(TypeError, self.type2test.maketrans, 'abc', 'def', 2)
382 self.assertRaises(ValueError, self.type2test.maketrans, {'xy': 2})
383 self.assertRaises(TypeError, self.type2test.maketrans, {(1,): 2})
Dtest_ordered_dict.py853 cls.type2test = py_coll.OrderedDict
865 cls.type2test = c_coll.OrderedDict
878 cls.type2test = MyOrderedDict
892 cls.type2test = MyOrderedDict
Dtest_shelve.py162 type2test = shelve.Shelf variable in TestShelveBase
Dtest_userdict.py15 type2test = collections.UserDict variable in UserDictTest
Dtest_dict.py1608 type2test = dict variable in GeneralMappingTests
1614 type2test = Dict variable in SubclassMappingTests
Dtest_weakref.py1973 type2test = weakref.WeakValueDictionary variable in WeakValueDictionaryTestCase
1980 type2test = weakref.WeakKeyDictionary variable in WeakKeyDictionaryTestCase
Dtest_deque.py910 type2test = deque variable in TestSequence
Dtest_os.py971 type2test = None variable in EnvironTests