/
niceSOFT
/
python3-attrs
Обзор
Документация
Войти
/
niceSOFT
/
python3-attrs
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/test_utils.py
19 строк
440 B
Hynek Schlawack
Make tests for simple-class actually run
22 авг 2022, 11:54
Не верифицирован
22 авг 2022, 11:54
649b273
Код
Авторство
О чём код?
from .utils import simple_class class TestSimpleClass: """ Tests for the testing helper function `make_class`. """ def test_returns_class(self): """ Returns a class object. """ assert type is simple_class().__class__ def test_returns_distinct_classes(self): """ Each call returns a completely new class. """ assert simple_class() is not simple_class()