def create_snapshot_query_with_metadata(metadata_query_string, api_microversion):
 req = fakes.HTTPRequest.blank(('/v3/snapshots?metadata=' + metadata_query_string))
 req.headers['OpenStack-API-Version'] = ('volume ' + api_microversion)
 req.api_version_request = api_version.APIVersionRequest(api_microversion)
 return req

def create_snapshot_query_with_metadata ( metadata_query_string , api_microversion ) : req = fakes . HTTPRequest . blank ( ( '/v3/snapshots?metadata=' + metadata_query_string ) ) req . headers [ 'OpenStack-API-Version' ] = ( 'volume ' + api_microversion ) req . api_version_request = api_version . APIVersionRequest ( api_microversion ) return req
helper to create metadata querystring with microversion .