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

Method test_paddedfile_getattr

Lib/test/test_gzip.py:336–340  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

334 self.assertEqual(f.name, self.filename)
335
336 def test_paddedfile_getattr(self):
337 self.test_write()
338 with gzip.GzipFile(self.filename, 'rb') as f:
339 self.assertHasAttr(f.fileobj, "name")
340 self.assertEqual(f.fileobj.name, self.filename)
341
342 def test_mtime(self):
343 mtime = 123456789

Callers

nothing calls this directly

Calls 3

test_writeMethod · 0.95
assertHasAttrMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected