1010
1111
1212class TestSelfSignedScheme (TestkitTestCase ):
13- """
14- Tests URL scheme neo4j+ssc/bolt+ssc where server is assumed to present a
15- signed server certificate but not necessarily signed by an authority
16- recognized by the driver.
17- """
18-
13+ # Tests URL scheme neo4j+ssc/bolt+ssc where server is assumed to present a
14+ # signed server certificate but not necessarily signed by an authority
15+ # recognized by the driver.
1916 def setUp (self ):
2017 super ().setUp ()
2118 self ._server = None
@@ -38,10 +35,8 @@ def _try_connect(self, scheme, host, driver_config):
3835 ** driver_config )
3936
4037 def test_trusted_ca_correct_hostname (self ):
41- """
42- A server certificate signed by a trusted CA should be accepted even
43- when configured for self signed.
44- """
38+ # A server certificate signed by a trusted CA should be accepted even
39+ # when configured for self signed.
4540 self .skip_if_missing_driver_features (* self .feature_requirement )
4641 for driver_config in self .extra_driver_configs :
4742 for scheme in self .schemes :
@@ -54,11 +49,9 @@ def test_trusted_ca_correct_hostname(self):
5449 self ._server .reset ()
5550
5651 def test_trusted_ca_expired_server_correct_hostname (self ):
57- """
58- A server certificate signed by a trusted CA but the certificate has
59- expired. Go driver happily connects when InsecureSkipVerify is enabled,
60- same for all drivers ?
61- """
52+ # A server certificate signed by a trusted CA but the certificate has
53+ # expired. Go driver happily connects when InsecureSkipVerify is
54+ # enabled, same for all drivers ?
6255 self .skip_if_missing_driver_features (* self .feature_requirement )
6356 for driver_config in self .extra_driver_configs :
6457 for scheme in self .schemes :
@@ -71,10 +64,8 @@ def test_trusted_ca_expired_server_correct_hostname(self):
7164 self ._server .reset ()
7265
7366 def test_trusted_ca_wrong_hostname (self ):
74- """
75- A server certificate signed by a trusted CA but with wrong hostname
76- will still be accepted.
77- """
67+ # A server certificate signed by a trusted CA but with wrong hostname
68+ # will still be accepted.
7869 # TLS server is setup to serve under the name 'thehost' but driver will
7970 # connect to this server using 'thehostbutwrong'. Note that the docker
8071 # container must map this hostname to same IP as 'thehost', if this
@@ -94,7 +85,7 @@ def test_trusted_ca_wrong_hostname(self):
9485 self ._server .reset ()
9586
9687 def test_untrusted_ca_correct_hostname (self ):
97- """ Should connect """
88+ # Should connect
9889 self .skip_if_missing_driver_features (* self .feature_requirement )
9990 for driver_config in self .extra_driver_configs :
10091 for scheme in self .schemes :
@@ -107,7 +98,7 @@ def test_untrusted_ca_correct_hostname(self):
10798 self ._server .reset ()
10899
109100 def test_untrusted_ca_wrong_hostname (self ):
110- """ Should connect """
101+ # Should connect
111102 self .skip_if_missing_driver_features (* self .feature_requirement )
112103 for driver_config in self .extra_driver_configs :
113104 for scheme in self .schemes :
@@ -121,10 +112,8 @@ def test_untrusted_ca_wrong_hostname(self):
121112 self ._server .reset ()
122113
123114 def test_unencrypted (self ):
124- """
125- Verifies that driver doesn't connect when it has been configured for
126- TLS connections but the server doesn't speak TLS
127- """
115+ # Verifies that driver doesn't connect when it has been configured for
116+ # TLS connections but the server doesn't speak TLS
128117 self .skip_if_missing_driver_features (* self .feature_requirement )
129118 for driver_config in self .extra_driver_configs :
130119 for scheme in self .schemes :
0 commit comments