MCPcopy Index your code
hub / github.com/python/cpython / test_attributes

Method test_attributes

Lib/test/test__colorize.py:27–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25class TestTheme(unittest.TestCase):
26
27 def test_attributes(self):
28 # only theme configurations attributes by default
29 for field in dataclasses.fields(_colorize.Theme):
30 with self.subTest(field.name):
31 self.assertIsSubclass(field.type, _colorize.ThemeSection)
32 self.assertIsNotNone(field.default_factory)
33
34 def test_copy_with(self):
35 theme = _colorize.Theme()

Callers

nothing calls this directly

Calls 4

fieldsMethod · 0.80
assertIsSubclassMethod · 0.80
assertIsNotNoneMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected