Searched refs:dictlike (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | mapping_tests.py | 434 class dictlike(self.type2test): pass class 435 self.assertEqual(dictlike.fromkeys('a'), {'a':None}) 436 self.assertEqual(dictlike().fromkeys('a'), {'a':None}) 437 self.assertTrue(dictlike.fromkeys('a').__class__ is dictlike) 438 self.assertTrue(dictlike().fromkeys('a').__class__ is dictlike) 439 self.assertTrue(type(dictlike.fromkeys('a')) is dictlike)
|
D | test_dict.py | 226 class dictlike(dict): pass class 227 self.assertEqual(dictlike.fromkeys('a'), {'a':None}) 228 self.assertEqual(dictlike().fromkeys('a'), {'a':None}) 229 self.assertIsInstance(dictlike.fromkeys('a'), dictlike) 230 self.assertIsInstance(dictlike().fromkeys('a'), dictlike)
|
/external/python/cpython2/Lib/test/ |
D | test_dict.py | 221 class dictlike(dict): pass class 222 self.assertEqual(dictlike.fromkeys('a'), {'a':None}) 223 self.assertEqual(dictlike().fromkeys('a'), {'a':None}) 224 self.assertIsInstance(dictlike.fromkeys('a'), dictlike) 225 self.assertIsInstance(dictlike().fromkeys('a'), dictlike)
|
D | mapping_tests.py | 451 class dictlike(self.type2test): pass class 452 self.assertEqual(dictlike.fromkeys('a'), {'a':None}) 453 self.assertEqual(dictlike().fromkeys('a'), {'a':None}) 454 self.assertTrue(dictlike.fromkeys('a').__class__ is dictlike) 455 self.assertTrue(dictlike().fromkeys('a').__class__ is dictlike)
|