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

Method test_paddedfile_getattr

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

test_writeMethod · 0.95
assertHasAttrMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected