Пример #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'}