summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2022-04-25 08:15:06 -0400
committerJeff Forcier <jeff@bitprophet.org>2022-04-25 08:15:06 -0400
commit47529be4385cffba6851f10e505f5683290d116e (patch)
tree0e1169c507de4a9b00ea9af7cad7656b1414b498 /tests
parent7a2c84afaada7a513ee482ba36e8848528b6f5f3 (diff)
parentd7fe051087fc9bd31dc0c42da63b3ae4852f6d2d (diff)
downloadparamiko-47529be4385cffba6851f10e505f5683290d116e.tar.gz
Merge branch '2.9' into 2.10
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pkey.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index e1a3a362..3bc0459a 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -624,6 +624,11 @@ class KeyTest(unittest.TestCase):
for key1, key2 in self.keys():
assert key1 == key2
+ def test_keys_are_not_equal_to_other(self):
+ for value in [None, True, ""]:
+ for key1, _ in self.keys():
+ assert key1 != value
+
def test_keys_are_hashable(self):
# NOTE: this isn't a great test due to hashseed randomization under
# Python 3 preventing use of static values, but it does still prove