def test_cli_connect_timeout_for_blocking(self): parsed_args = FakeParsedArgs(connect_timeout='0') session = get_session() globalargs.resolve_cli_connect_timeout(parsed_args, session) self.assertEqual(parsed_args.connect_timeout, None) self.assertEqual( session.get_default_client_config().connect_timeout, None)
def test_cli_connect_timeout_for_blocking(self): parsed_args = FakeParsedArgs(connect_timeout='0') session = get_session() globalargs.resolve_cli_connect_timeout(parsed_args, session) self.assertEqual(parsed_args.connect_timeout, None) self.assertEqual(session.get_default_client_config().connect_timeout, None)