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

Method test

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

Source from the content-addressed store, hash-verified

1897class TestFileTypeDeprecation(TestCase):
1898
1899 def test(self):
1900 with self.assertWarns(PendingDeprecationWarning) as cm:
1901 argparse.FileType()
1902 self.assertIn('FileType is deprecated', str(cm.warning))
1903 self.assertEqual(cm.filename, __file__)
1904
1905
1906class 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