A serializer to emit YAML but with request body in nicely formatted JSON.
Bases: betamax.serializers.base.BaseSerializer
A method that must be implemented by the Serializer author.
The return value is extremely important. If it is not empty, the dictionary returned must have the following structure:
{
'http_interactions': [{
# Interaction
},
{
# Interaction
}],
'recorded_with': 'name of recorder'
}
The data serialized as a string which needs to be deserialized.
dictionary
A method that must be implemented by the Serializer author.
cassette_data (dict) – A dictionary with two keys:
http_interactions
, recorded_with
.
Serialized data as a string.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.