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

Method test_no_name_argument

Lib/test/test_tarfile.py:557–562  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

555 is_stream = False
556
557 def test_no_name_argument(self):
558 with open(self.tarname, "rb") as fobj:
559 self.assertIsInstance(fobj.name, str)
560 with tarfile.open(fileobj=fobj, mode=self.mode) as tar:
561 self.assertIsInstance(tar.name, str)
562 self.assertEqual(tar.name, os.path.abspath(fobj.name))
563
564 def test_no_name_attribute(self):
565 with open(self.tarname, "rb") as fobj:

Callers

nothing calls this directly

Calls 4

assertIsInstanceMethod · 0.80
openFunction · 0.50
openMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected