'Test keyring fallback & get_password.'

def test_secrets_keyring(self):

    yaml.keyring = None
    yaml_str = 'http:\n        api_password:    !secret    http_pw_keyring'
    with self.assertRaises(yaml.HomeAssistantError):
        load_yaml(self._yaml_path, yaml_str)
    yaml.keyring = FakeKeyring({'http_pw_keyring': 'yeah'})
    _yaml = load_yaml(self._yaml_path, yaml_str)
    self.assertEqual({'http': {'api_password': 'yeah'}}, _yaml)
