Home
last modified time | relevance | path

Searched refs:dictlike (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/test/
Dmapping_tests.py434 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)
Dtest_dict.py226 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/
Dtest_dict.py221 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)
Dmapping_tests.py451 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)