File: test_tests.py

package info (click to toggle)
python-cattrs 25.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,812 kB
  • sloc: python: 12,236; makefile: 155
file content (9 lines) | stat: -rw-r--r-- 254 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from .untyped import gen_attr_names


def test_gen_attr_names():
    """We can generate a lot of attribute names."""
    assert len(list(gen_attr_names())) == 697

    # No duplicates!
    assert len(list(gen_attr_names())) == len(set(gen_attr_names()))