MCPcopy Index your code
hub / github.com/python/cpython / assertLogFile

Method assertLogFile

Lib/test/test_logging.py:6338–6342  ·  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

6336 BaseTest.tearDown(self)
6337
6338 def assertLogFile(self, filename):
6339 "Assert a log file is there and register it for deletion"
6340 self.assertTrue(os.path.exists(filename),
6341 msg="Log file %r does not exist" % filename)
6342 self.rmfiles.append(filename)
6343
6344 def next_rec(self):
6345 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