def test_to_yaml_dict_success_to_encrypt(self): obj = EnvironmentDict(foo=ToEncrypt('bar')) assert obj.to_yaml_dict() == {'foo': {'to_encrypt': 'bar'}}
def test_to_yaml_dict_success_encrypted(self): obj = EnvironmentDict(foo=Encrypted('bar')) assert obj.to_yaml_dict() == {'foo': {'encrypted': 'bar'}}
def test_to_yaml_dict_success_plain(self): obj = EnvironmentDict(foo='bar') assert obj.to_yaml_dict() == {'foo': 'bar'}