parameters: (variables)
docstring: Verifies the |variables| dictionary is in the expected format.
docstring_summary: Verifies the |variables| dictionary is in the expected format.
docstring_tokens: Verifies the |variables| dictionary is in the expected format .
function: def verify_variables(variables):
    """Verifies the |variables| dictionary is in the expected format."""
    VALID_VARIABLES = [
      KEY_TRACKED,
      KEY_UNTRACKED,
      'command',
      'read_only',
    ]
    assert isinstance(variables, dict), variables
    assert set(VALID_VARIABLES).issuperset(set(variables)), variables.keys()
    for name, value in variables.iteritems():
      if name == 'read_only':
        assert value in (True, False, None), value
      else:
        assert isinstance(value, list), value
        assert all(isinstance(i, basestring) for i in value), value
function_tokens: def verify_variables ( variables ) : VALID_VARIABLES = [ KEY_TRACKED , KEY_UNTRACKED , 'command' , 'read_only' , ] assert isinstance ( variables , dict ) , variables assert set ( VALID_VARIABLES ) . issuperset ( set ( variables ) ) , variables . keys ( ) for name , value in variables . iteritems ( ) : if name == 'read_only' : assert value in ( True , False , None ) , value else : assert isinstance ( value , list ) , value assert all ( isinstance ( i , basestring ) for i in value ) , value