(self)
| 5754 | self.assertEqual(data, r'') |
| 5755 | |
| 5756 | def test_formatter_given(self): |
| 5757 | mock_formatter = Mock() |
| 5758 | mock_handler = Mock(formatter=None) |
| 5759 | with patch("logging.Formatter") as mock_formatter_init: |
| 5760 | logging.basicConfig(formatter=mock_formatter, handlers=[mock_handler]) |
| 5761 | self.assertEqual(mock_handler.setFormatter.call_args_list, [call(mock_formatter)]) |
| 5762 | self.assertEqual(mock_formatter_init.call_count, 0) |
| 5763 | |
| 5764 | def test_formatter_not_given(self): |
| 5765 | mock_handler = Mock(formatter=None) |
nothing calls this directly
no test coverage detected