(self)
| 2062 | """ |
| 2063 | |
| 2064 | def test(self): |
| 2065 | parser = argparse.ArgumentParser() |
| 2066 | with self.assertRaises(TypeError) as cm: |
| 2067 | parser.add_argument('-x', type=argparse.FileType) |
| 2068 | |
| 2069 | self.assertEqual( |
| 2070 | '%r is a FileType class object, instance of it must be passed' |
| 2071 | % (argparse.FileType,), |
| 2072 | str(cm.exception) |
| 2073 | ) |
| 2074 | |
| 2075 | |
| 2076 | class TestTypeCallable(ParserTestCase): |
nothing calls this directly
no test coverage detected