summaryrefslogtreecommitdiffhomepage
path: root/tests/pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-05-24 22:11:29 -0400
committerJeff Forcier <jeff@bitprophet.org>2023-05-24 22:11:29 -0400
commite366e075f4bda05babd73cc0f105ec0d48b13280 (patch)
treecd544be0640ff904c27a7ba83e362b641e9ecf42 /tests/pkey.py
parent0923d57b13495c5fa4f9d6a36eb86eb4bf8aca88 (diff)
TODOs for later
Diffstat (limited to 'tests/pkey.py')
-rw-r--r--tests/pkey.py8
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"))