tests/test_data_delivery.py
def _get_value(value_template, index):
    """
    Take a template and complete it with the index if the template contains %s.
    If the template is an iterable (but not a string or dict) then it takes the next one and complete the template.
    """
    if not (type(value_template) in [str, dict]) and isinstance(value_template, collections.Iterable):
        value_template = next(value_template)
    if isinstance(value_template, str) and '%s' in value_template:
        return value_template % index
    else:
        return value_template

    Take a template and complete it with the index if the template contains %s.
    If the template is an iterable (but not a string or dict) then it takes the next one and complete the template.
    
Take a template and complete it with the index if the template contains %s.
If the template is an iterable (but not a string or dict) then it takes the next one and complete the template.
Take a template and complete it with the index if the template contains %s . If the template is an iterable ( but not a string or dict ) then it takes the next one and complete the template .
def _get_value(value_template, index):
    if not (type(value_template) in [str, dict]) and isinstance(value_template, collections.Iterable):
        value_template = next(value_template)
    if isinstance(value_template, str) and '%s' in value_template:
        return value_template % index
    else:
        return value_template
def _get_value ( value_template , index ) : if not ( type ( value_template ) in [ str , dict ] ) and isinstance ( value_template , collections . Iterable ) : value_template = next ( value_template ) if isinstance ( value_template , str ) and '%s' in value_template : return value_template % index else : return value_template
Take a template and complete it with the index if the template contains %s.
Take a template and complete it with the index if the template contains %s .
"""
    Take a template and complete it with the index if the template contains %s.
    If the template is an iterable (but not a string or dict) then it takes the next one and complete the template.
    """
value_template
index