MCPcopy Index your code
hub / github.com/RustPython/RustPython / assertLogFile

Method assertLogFile

Lib/test/test_logging.py:6196–6200  ·  view source on GitHub ↗

Assert a log file is there and register it for deletion

(self, filename)

Source from the content-addressed store, hash-verified

6194 BaseTest.tearDown(self)
6195
6196 def assertLogFile(self, filename):
6197 "Assert a log file is there and register it for deletion"
6198 self.assertTrue(os.path.exists(filename),
6199 msg="Log file %r does not exist" % filename)
6200 self.rmfiles.append(filename)
6201
6202 def next_rec(self):
6203 return logging.LogRecord('n', logging.DEBUG, 'p', 1,

Callers 7

test_file_createdMethod · 0.80
test_max_bytesMethod · 0.80
test_rotatorMethod · 0.80
test_rolloverMethod · 0.80

Calls 3

assertTrueMethod · 0.80
existsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected