Home
last modified time | relevance | path

Searched refs:assertTypeError (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_optparse.py183 def assertTypeError(self, func, expected_message, *args): member in BaseTest
210 self.assertTypeError(make_option,
334 self.assertTypeError(self.parser.add_option,
338 self.assertTypeError(self.parser.add_option,
996 self.assertTypeError(self.parser.add_option_group,
1000 self.assertTypeError(self.parser.add_option_group,
Dtest_argparse.py4090 def assertTypeError(self, *args, **kwargs): member in TestInvalidArgumentConstructors
4101 self.assertTypeError('-x', bar=None)
4102 self.assertTypeError('-y', callback='foo')
4103 self.assertTypeError('-y', callback_args=())
4104 self.assertTypeError('-y', callback_kwargs={})
4107 self.assertTypeError()
4109 self.assertTypeError(action=action)
4148 self.assertTypeError('-x', action=action, **attrs)
4155 self.assertTypeError('-x', const='foo', action=action)
4158 self.assertTypeError('-x', nargs='*', action=action)
[all …]