File: test_collection_abc.py

package info (click to toggle)
python-collections-extended 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: python: 2,917; makefile: 59
file content (29 lines) | stat: -rw-r--r-- 421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import pytest

from collections_extended import (
	setlist,
	frozensetlist,
	bag,
	frozenbag,
	bijection,
	RangeMap,
	Collection,
	)


@pytest.mark.parametrize('klass', [
	setlist,
	frozensetlist,
	bag,
	frozenbag,
	bijection,
	RangeMap,
	list,
	tuple,
	set,
	frozenset,
	dict,
	])
def test_subclass(klass):
	"""Test that all appropriate collections are subclasses of Collection."""
	assert issubclass(klass, Collection)