Additional class_body is added to newly created class.
(self)
| 1456 | assert isinstance(cls(), D) |
| 1457 | |
| 1458 | def test_additional_class_body(self): |
| 1459 | class="st">""" |
| 1460 | Additional class_body is added to newly created class. |
| 1461 | class="st">""" |
| 1462 | |
| 1463 | def echo_func(cls, *args): |
| 1464 | return args |
| 1465 | |
| 1466 | cls = make_class(class="st">"C", {}, class_body={class="st">"echo": classmethod(echo_func)}) |
| 1467 | |
| 1468 | assert (class="st">"a", class="st">"b") == cls.echo(class="st">"a", class="st">"b") |
| 1469 | |
| 1470 | def test_clean_class(self, slots): |
| 1471 | class="st">""" |
nothing calls this directly
no test coverage detected