Exemplo n.º 1
0
 def test_signing_config_as_dict_method(self):
     d_reference = {
         "skip": False,
         "batch": True,
         "gpgkey": "xxx",
         "keyring": None,
         "secret_keyring": None,
         "passphrase": "password",
         "passphrase_file": None
     }
     c = SigningConfig(**d_reference)
     d = c.as_dict()
     assert d == d_reference
Exemplo n.º 2
0
 def test_signing_config_as_dict_method_with_prefix(self):
     d_init = {
         "skip": False,
         "batch": True,
         "gpgkey": "xxx",
         "keyring": None,
         "secret_keyring": None,
         "passphrase": "password",
         "passphrase_file": None
     }
     d_reference = {}
     for k, v in d_init.items():
         d_reference["sign_" + k] = v
     c = SigningConfig(**d_init)
     d = c.as_dict(prefix="sign_")
     assert d == d_reference