Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94767f commit 292ee5dCopy full SHA for 292ee5d
1 file changed
Lib/test/test_crypt.py
@@ -25,7 +25,10 @@ def test_saltedcrypt(self):
25
self.assertEqual(len(pw), method.total_size)
26
27
def test_methods(self):
28
- self.assertTrue(len(crypt.methods()) > 1)
+ # Gurantee that METHOD_CRYPT is the last method in crypt.methods().
29
+ methods = crypt.methods()
30
+ self.assertTrue(len(methods) >= 1)
31
+ self.assertEqual(crypt.METHOD_CRYPT, methods[-1])
32
33
def test_main():
34
support.run_unittest(CryptTestCase)
0 commit comments