(self)
| 1828 | self.assertEqual(getattr(rec, k), v) |
| 1829 | |
| 1830 | def testAssertLogsDefaults(self): |
| 1831 | # defaults: root logger, level INFO |
| 1832 | with self.assertNoStderr(): |
| 1833 | with self.assertLogs() as cm: |
| 1834 | log_foo.info("1") |
| 1835 | log_foobar.debug("2") |
| 1836 | self.assertEqual(cm.output, ["INFO:foo:1"]) |
| 1837 | self.assertLogRecords(cm.records, [{'name': 'foo'}]) |
| 1838 | |
| 1839 | def testAssertLogsTwoMatchingMessages(self): |
| 1840 | # Same, but with two matching log messages |
nothing calls this directly
no test coverage detected