summaryrefslogtreecommitdiffhomepage
path: root/tests/test_pkey.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2022-04-25 08:15:42 -0400
committerJeff Forcier <jeff@bitprophet.org>2022-04-25 08:15:42 -0400
commitd9eb35c69ab29a1ad7a9e3dd5325d4cab9dd2bc0 (patch)
treebfa73aede87b442db84627cbe9075d3082a1601f /tests/test_pkey.py
parent9151b5a5ef6634142cc810193a59630c863549c3 (diff)
parent47529be4385cffba6851f10e505f5683290d116e (diff)
Merge branch '2.10'
Diffstat (limited to 'tests/test_pkey.py')
-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 44ab688f..738e8cf0 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -626,6 +626,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