MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / make_connection

Method make_connection

tests/unit/io/utils.py:213–218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

211 ]))
212
213 def make_connection(self):
214 c = self.connection_class(DefaultEndPoint('1.2.3.4'), cql_version='3.0.1', connect_timeout=5)
215 mocket = Mock()
216 mocket.send.side_effect = lambda x: len(x)
217 self.set_socket(c, mocket)
218 return c
219
220 def make_options_body(self):
221 options_buf = BytesIO()

Calls 2

set_socketMethod · 0.95
DefaultEndPointClass · 0.90