'Helper to check that keys have been sanitized.'

def _check_vars_sanitized(self, vars, proc):

    assert ('foo' in vars)
    assert (vars['foo'] == 'bar')
    assert ('password' in vars)
    assert (vars['password'] == FILTER_MASK)
    assert ('the_secret' in vars)
    assert (vars['the_secret'] == FILTER_MASK)
    assert ('a_password_here' in vars)
    assert (vars['a_password_here'] == FILTER_MASK)
    assert ('api_key' in vars)
    assert (vars['api_key'] == FILTER_MASK)
    assert ('apiKey' in vars)
    assert (vars['apiKey'] == FILTER_MASK)
