diff options
-rw-r--r-- | tests/pkey.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pkey.py b/tests/pkey.py index 3a1ee5ca..d1dbe0e5 100644 --- a/tests/pkey.py +++ b/tests/pkey.py @@ -17,11 +17,17 @@ from ._util import _support class PKey_: + # NOTE: this is incidentally tested by a number of other tests, such as the + # agent.py test suite class from_type_string: def loads_from_type_and_bytes(self, keys): obj = PKey.from_type_string(keys.full_type, keys.pkey.asbytes()) assert obj == keys.pkey + # TODO: exceptions + # + # TODO: passphrase? OTOH since this is aimed at the agent...irrelephant + class from_path: def loads_from_Path(self, keys): obj = PKey.from_path(keys.path) @@ -62,6 +68,8 @@ class PKey_: with raises(ValueError): PKey.from_path(__file__) + # TODO: passphrase support tested + class automatically_loads_certificates: def existing_cert_loaded_when_given_key_path(self): key = PKey.from_path(_support("rsa.key")) |