(self)
| 46 | self.assertEqual(copy.unittest, unittest_no_colors) |
| 47 | |
| 48 | def test_no_colors(self): |
| 49 | # idempotence test |
| 50 | theme_no_colors = _colorize.Theme().no_colors() |
| 51 | theme_no_colors_no_colors = theme_no_colors.no_colors() |
| 52 | self.assertEqual(theme_no_colors, theme_no_colors_no_colors) |
| 53 | |
| 54 | # attributes check |
| 55 | for section in dataclasses.fields(_colorize.Theme): |
| 56 | with self.subTest(section.name): |
| 57 | section_theme = getattr(theme_no_colors, section.name) |
| 58 | self.assertEqual(section_theme, section.type.no_colors()) |
| 59 | |
| 60 | |
| 61 | class TestColorizeFunction(unittest.TestCase): |
nothing calls this directly
no test coverage detected