def test_multitype_conv_invalid_type():
 param = inspect.Parameter('foo', inspect.Parameter.POSITIONAL_ONLY)
 with pytest.raises(ValueError) as excinfo:
  argparser.multitype_conv(param, [None], '')
 assert (str(excinfo.value) == 'foo: Unknown type None!')

def test_multitype_conv_invalid_type ( ) : param = inspect . Parameter ( 'foo' , inspect . Parameter . POSITIONAL_ONLY ) with pytest . raises ( ValueError ) as excinfo : argparser . multitype_conv ( param , [ None ] , '' ) assert ( str ( excinfo . value ) == 'foo: Unknown type None!' )
test using an invalid type with a multitype converter .