/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_heapq.py | 82 self.assertEqual(heap, sorted(data)[-10:]) 104 self.assertEqual(list(self.heapiter(heap)), sorted(data)[-10:]) 116 self.assertEqual(list(self.heapiter(heap)), sorted(data)[-10:]) 151 self.assertEqual(heap_sorted, sorted(data)) 156 row = sorted(random.randrange(1000) for j in range(random.randrange(10))) 158 self.assertEqual(sorted(chain(*inputs)), list(self.module.merge(*inputs))) 174 self.assertEqual(result, sorted(result)) 180 self.assertEqual(self.module.nsmallest(n, data), sorted(data)[:n]) 182 sorted(data, key=f)[:n]) 189 sorted(data, reverse=True)[:n]) [all …]
|
D | test_dbm.py | 22 self.assertEqual(sorted(self.d.keys()), sorted(k for (k, v) in a))
|
D | test_rlcompleter.py | 34 self.assertEqual(sorted(self.stdcompleter.global_matches('di')), 36 self.assertEqual(sorted(self.stdcompleter.global_matches('st')),
|
D | test_collections.py | 611 self.assertEqual(sorted(c.values()), [1, 2, 3]) 612 self.assertEqual(sorted(c.keys()), ['a', 'b', 'c']) 613 self.assertEqual(sorted(c), ['a', 'b', 'c']) 614 self.assertEqual(sorted(c.items()), 631 self.assertEqual(''.join(sorted(c.elements())), 'aaabbc') 640 self.assertEqual(''.join(sorted(c.elements())), 'aaaaffff') 704 self.assertEqual(sorted(Counter(s).elements()), sorted(s)) 705 self.assertEqual(sorted(Counter(s)), sorted(set(s))) 771 self.assertEqual(sorted(OrderedDict(dict(pairs)).items()), pairs) # dict input 772 self.assertEqual(sorted(OrderedDict(**dict(pairs)).items()), pairs) # kwds input [all …]
|
D | test_itertools.py | 111 if sorted(indices) == list(indices): 128 self.assertEqual(result, sorted(result)) # lexicographic order 132 self.assertEqual(list(c), sorted(c)) # keep original ordering 176 if sorted(indices) == list(indices): 191 self.assertEqual(result, sorted(result)) # lexicographic order 203 self.assertEqual(list(c), sorted(c)) # keep original ordering 263 self.assertEqual(result, sorted(result)) # lexicographic order 297 self.assertEqual(prod, sorted(set(prod))) 298 self.assertEqual(cwr, sorted(set(cwr))) 299 self.assertEqual(perm, sorted(set(perm))) [all …]
|
D | test_cookie.py | 37 for k, v in sorted(case['dict'].iteritems()):
|
D | test_pydoc.py | 357 self.assertEqual(sorted(pydoc.Helper.keywords), 358 sorted(keyword.kwlist))
|
D | test___all__.py | 51 for fn in sorted(os.listdir(basedir)):
|
D | test_rfc822.py | 198 self.assertEqual(sorted(m), ['date', 'from', 'subject', 'to'])
|
D | test_builtin.py | 879 sorted(reversed(data), key=f)[-1]) 925 sorted(data, key=f)[0]) 1651 self.assertEqual(data, sorted(copy)) 1656 self.assertEqual(data, sorted(copy, cmp=lambda x, y: cmp(y,x))) 1659 self.assertEqual(data, sorted(copy, key=lambda x: -x)) 1662 self.assertEqual(data, sorted(copy, reverse=1)) 1671 self.assertEqual(sorted(s), sorted(T(s))) 1678 self.assertEqual(sorted(s), sorted(T(s))) 1682 self.assertRaises(TypeError, sorted, data, None, lambda x,y: 0)
|
D | lock_tests.py | 456 self.assertEqual(sorted(results1 + results2), [0] * 6 + [1] * 7) 462 self.assertEqual(sorted(results1 + results2), [0] * 6 + [1] * 7 + [2] * 6) 488 self.assertEqual(sorted(results), [False] * 7 + [True] * 3 )
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/ |
D | mkstringprep.py | 149 table = sorted(table.keys()) 179 b3 = sorted(b3_exceptions.items()) 354 table = sorted(table.keys()) 367 table = sorted(table.keys()) 380 table = sorted(table.keys()) 393 table = sorted(table.keys())
|
D | gencodec.py | 152 mappings = sorted(map.items()) 200 mappings = sorted(map.items())
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/ |
D | sortingtest.py | 40 items = sorted(makekey(item) for item in line.split())
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | heapq.py | 216 result = sorted(islice(it, 0, n)) 378 return sorted(iterable, key=key)[:n] 416 return sorted(iterable, key=key, reverse=True)[:n]
|
D | abc.py | 123 for name in sorted(cls.__dict__.keys()):
|
D | sets.py | 95 def _repr(self, sorted=False): argument 97 if sorted:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/ |
D | symbols.py | 412 return sorted(l1) == sorted(l2) 440 print sorted(mod_names) 441 print sorted(names2) 460 print sorted(get_names(s.get_namespace())) 461 print sorted(l[0].get_names())
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/ |
D | main.py | 163 rt = StdoutRefactoringTool(sorted(fixer_names), flags, sorted(explicit),
|
/device/linaro/bootloader/edk2/BaseTools/Scripts/ |
D | MemoryProfileSymbolGen.py | 99 … self.listLineAddress = sorted(self.listLineAddress, key=lambda symbolAddress:symbolAddress[0]) 158 … self.listLineAddress = sorted(self.listLineAddress, key=lambda symbolAddress:symbolAddress[0])
|
/device/google/contexthub/firmware/lib/builtins/ |
D | CREDITS.TXT | 6 The list is sorted by surname and formatted to allow easy grepping and
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | heapq.py | 421 return sorted(iterable, key=key)[:n] 459 return sorted(iterable, key=key, reverse=True)[:n]
|
D | abc.py | 123 for name in sorted(cls.__dict__.keys()):
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/ |
D | StrGather.py | 598 Uni = UniFileClassObject(sorted (UniFilList), True, IncludePathList) 600 Uni = UniFileClassObject(sorted (UniFilList), IsCompatibleMode, IncludePathList) 606 Uni = SearchString(Uni, sorted (FileList), IsCompatibleMode)
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Scripts/Ds5/ |
D | profile.py | 319 sorted_functions_cycles = sorted(functions_cycles.iteritems(), key=operator.itemgetter(1), reve… 320 sorted_all_functions_cycles = sorted(all_functions_cycles.items(), key=operator.itemgetter(1), reve…
|