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

Method test

Lib/test/test_argparse.py:1800–1804  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1798class TestFileTypeDeprecation(TestCase):
1799
1800 def test(self):
1801 with self.assertWarns(PendingDeprecationWarning) as cm:
1802 argparse.FileType()
1803 self.assertIn('FileType is deprecated', str(cm.warning))
1804 self.assertEqual(cm.filename, __file__)
1805
1806
1807class TestFileTypeRepr(TestCase):

Callers

nothing calls this directly

Calls 4

strFunction · 0.85
assertWarnsMethod · 0.80
assertInMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected