Skip to content

Commit

Permalink
TODOs for later
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed May 25, 2023
1 parent 0923d57 commit e366e07
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/pkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@


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)
Expand Down Expand Up @@ -62,6 +68,8 @@ def leaves_cryptography_exceptions_untouched(self):
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"))
Expand Down

0 comments on commit e366e07

Please sign in to comment.