Lines Matching defs:collections
1 """Unit tests for collections.py."""
3 import collections
17 from collections import namedtuple, Counter, OrderedDict, _count_elements
18 from collections import UserDict, UserString, UserList
19 from collections import ChainMap
20 from collections import deque
21 from collections.abc import Awaitable, Coroutine
22 from collections.abc import AsyncIterator, AsyncIterable, AsyncGenerator
23 from collections.abc import Hashable, Iterable, Iterator, Generator, Reversible
24 from collections.abc import Sized, Container, Callable, Collection
25 from collections.abc import Set, MutableSet
26 from collections.abc import Mapping, MutableMapping, KeysView, ItemsView, ValuesView
27 from collections.abc import Sequence, MutableSequence
28 from collections.abc import ByteString
459 NT = namedtuple('NT', ['x', 'y'], module=collections)
460 self.assertEqual(NT.__module__, collections)
597 'class_namespace', 'classmethod', 'cls', 'collections', 'convert',
704 Group = collections.namedtuple('Group', 'key group')
1053 # Check some non-collections
1064 # Check some collections
2378 tests.addTest(doctest.DocTestSuite(collections))