(self)
| 1937 | self.assertLogRecords(cm.records, [{'name': 'foo'}]) |
| 1938 | |
| 1939 | def testAssertNoLogsDefault(self): |
| 1940 | with self.assertRaises(self.failureException) as cm: |
| 1941 | with self.assertNoLogs(): |
| 1942 | log_foo.info("1") |
| 1943 | log_foobar.debug("2") |
| 1944 | self.assertEqual( |
| 1945 | str(cm.exception), |
| 1946 | "Unexpected logs found: ['INFO:foo:1']", |
| 1947 | ) |
| 1948 | |
| 1949 | def testAssertNoLogsFailureFoundLogs(self): |
| 1950 | with self.assertRaises(self.failureException) as cm: |
nothing calls this directly
no test coverage detected