def test_single_conn_mgr(self): """ We want to use different instances of the ConnectionManager for HTTP and HTTPS. """ conn_mgr_http = HTTPHandler()._cm conn_mgr_https = HTTPSHandler(':')._cm self.assertIsNot(conn_mgr_http, conn_mgr_https)
def test_single_conn_mgr(self): """ We only want to use different instances of the ConnectionManager for HTTP and HTTPS. """ conn_mgr_http = id(HTTPHandler()._cm) conn_mgr_https = id(HTTPSHandler(':')._cm) self.assertNotEqual(conn_mgr_http, conn_mgr_https)