The proxy methods call the correct upstream methods.
(self, abl, cl, stdlib_log_method)
| 1548 | |
| 1549 | @pytest.mark.asyncio |
| 1550 | async def test_correct_levels(self, abl, cl, stdlib_log_method): |
| 1551 | """ |
| 1552 | The proxy methods call the correct upstream methods. |
| 1553 | """ |
| 1554 | await getattr(abl.bind(foo="bar"), stdlib_log_method)("42") |
| 1555 | |
| 1556 | aliases = {"warn": "warning"} |
| 1557 | |
| 1558 | expect = aliases.get(stdlib_log_method, stdlib_log_method) |
| 1559 | |
| 1560 | assert expect == cl.calls[0].method_name |
| 1561 | |
| 1562 | @pytest.mark.asyncio |
| 1563 | async def test_correct_level_fatal(self, abl, cl): |