diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-06-07 22:07:28 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-06-07 22:07:28 -0400 |
commit | cbcb0b8868297e90e7979dc512f6a9ee98f527f4 (patch) | |
tree | 4e959c2772f02922b7d0bb860574dc1538c06560 /tests/test_kex.py | |
parent | 73ea805722ffe335b065ce38b439b1f3fd2a391b (diff) |
While I'm in here, remove some of these horrid numbered test names
Diffstat (limited to 'tests/test_kex.py')
-rw-r--r-- | tests/test_kex.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/test_kex.py b/tests/test_kex.py index 48a82a0f..0d19ae56 100644 --- a/tests/test_kex.py +++ b/tests/test_kex.py @@ -146,7 +146,7 @@ class KexTest(unittest.TestCase): KexNistp256._generate_key_pair = self._original_generate_key_pair self.x25519_patcher.stop() - def test_1_group1_client(self): + def test_group1_client(self): transport = FakeTransport() transport.server_mode = False kex = KexGroup1(transport) @@ -170,7 +170,7 @@ class KexTest(unittest.TestCase): self.assertEqual((b"fake-host-key", b"fake-sig"), transport._verify) self.assertTrue(transport._activated) - def test_2_group1_server(self): + def test_group1_server(self): transport = FakeTransport() transport.server_mode = True kex = KexGroup1(transport) @@ -190,7 +190,7 @@ class KexTest(unittest.TestCase): self.assertEqual(x, hexlify(transport._message.asbytes()).upper()) self.assertTrue(transport._activated) - def test_3_gex_client(self): + def test_gex_client(self): transport = FakeTransport() transport.server_mode = False kex = KexGex(transport) @@ -224,7 +224,7 @@ class KexTest(unittest.TestCase): self.assertEqual((b"fake-host-key", b"fake-sig"), transport._verify) self.assertTrue(transport._activated) - def test_4_gex_old_client(self): + def test_gex_old_client(self): transport = FakeTransport() transport.server_mode = False kex = KexGex(transport) @@ -258,7 +258,7 @@ class KexTest(unittest.TestCase): self.assertEqual((b"fake-host-key", b"fake-sig"), transport._verify) self.assertTrue(transport._activated) - def test_5_gex_server(self): + def test_gex_server(self): transport = FakeTransport() transport.server_mode = True kex = KexGex(transport) @@ -295,7 +295,7 @@ class KexTest(unittest.TestCase): self.assertEqual(x, hexlify(transport._message.asbytes()).upper()) self.assertTrue(transport._activated) - def test_6_gex_server_with_old_client(self): + def test_gex_server_with_old_client(self): transport = FakeTransport() transport.server_mode = True kex = KexGex(transport) @@ -330,7 +330,7 @@ class KexTest(unittest.TestCase): self.assertEqual(x, hexlify(transport._message.asbytes()).upper()) self.assertTrue(transport._activated) - def test_7_gex_sha256_client(self): + def test_gex_sha256_client(self): transport = FakeTransport() transport.server_mode = False kex = KexGexSHA256(transport) @@ -364,7 +364,7 @@ class KexTest(unittest.TestCase): self.assertEqual((b"fake-host-key", b"fake-sig"), transport._verify) self.assertTrue(transport._activated) - def test_8_gex_sha256_old_client(self): + def test_gex_sha256_old_client(self): transport = FakeTransport() transport.server_mode = False kex = KexGexSHA256(transport) @@ -398,7 +398,7 @@ class KexTest(unittest.TestCase): self.assertEqual((b"fake-host-key", b"fake-sig"), transport._verify) self.assertTrue(transport._activated) - def test_9_gex_sha256_server(self): + def test_gex_sha256_server(self): transport = FakeTransport() transport.server_mode = True kex = KexGexSHA256(transport) @@ -435,7 +435,7 @@ class KexTest(unittest.TestCase): self.assertEqual(x, hexlify(transport._message.asbytes()).upper()) self.assertTrue(transport._activated) - def test_10_gex_sha256_server_with_old_client(self): + def test_gex_sha256_server_with_old_client(self): transport = FakeTransport() transport.server_mode = True kex = KexGexSHA256(transport) @@ -470,7 +470,7 @@ class KexTest(unittest.TestCase): self.assertEqual(x, hexlify(transport._message.asbytes()).upper()) self.assertTrue(transport._activated) - def test_11_kex_nistp256_client(self): + def test_kex_nistp256_client(self): K = 91610929826364598472338906427792435253694642563583721654249504912114314269754 transport = FakeTransport() transport.server_mode = False @@ -496,7 +496,7 @@ class KexTest(unittest.TestCase): self.assertEqual((b"fake-host-key", b"fake-sig"), transport._verify) self.assertTrue(transport._activated) - def test_12_kex_nistp256_server(self): + def test_kex_nistp256_server(self): K = 91610929826364598472338906427792435253694642563583721654249504912114314269754 transport = FakeTransport() transport.server_mode = True @@ -520,7 +520,7 @@ class KexTest(unittest.TestCase): self.assertEqual(H, hexlify(transport._H).upper()) @pytest.mark.skipif("not KexCurve25519.is_available()") - def test_13_kex_c25519_client(self): + def test_kex_c25519_client(self): K = 71294722834835117201316639182051104803802881348227506835068888449366462300724 transport = FakeTransport() transport.server_mode = False @@ -547,7 +547,7 @@ class KexTest(unittest.TestCase): self.assertTrue(transport._activated) @pytest.mark.skipif("not KexCurve25519.is_available()") - def test_14_kex_c25519_server(self): + def test_kex_c25519_server(self): K = 71294722834835117201316639182051104803802881348227506835068888449366462300724 transport = FakeTransport() transport.server_mode = True |