summaryrefslogtreecommitdiff
path: root/tests/pkey.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pkey.py')
-rw-r--r--tests/pkey.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pkey.py b/tests/pkey.py
new file mode 100644
index 00000000..b1cba825
--- /dev/null
+++ b/tests/pkey.py
@@ -0,0 +1,13 @@
+from paramiko import PKey
+
+
+class PKey_:
+ class from_type_string:
+ def loads_from_type_and_bytes(self, key):
+ obj = PKey.from_type_string(key.full_type, key.pkey.asbytes())
+ assert obj == key.pkey
+
+ class from_path:
+ def loads_from_file_path(self, key):
+ obj = PKey.from_path(key.path)
+ assert obj == key.pkey