示例#1
0
 def test_to_yaml_dict_success_to_encrypt(self):
     obj = EnvironmentDict(foo=ToEncrypt('bar'))
     assert obj.to_yaml_dict() == {'foo': {'to_encrypt': 'bar'}}
示例#2
0
 def test_to_yaml_dict_success_encrypted(self):
     obj = EnvironmentDict(foo=Encrypted('bar'))
     assert obj.to_yaml_dict() == {'foo': {'encrypted': 'bar'}}
示例#3
0
 def test_to_yaml_dict_success_plain(self):
     obj = EnvironmentDict(foo='bar')
     assert obj.to_yaml_dict() == {'foo': 'bar'}