MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / _verify_records

Method _verify_records

pymysql/tests/test_basic.py:355–360  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

353 )
354
355 def _verify_records(self, data):
356 conn = self.connect()
357 cursor = conn.cursor()
358 cursor.execute("SELECT id, name, age, height from bulkinsert")
359 result = cursor.fetchall()
360 self.assertEqual(sorted(data), sorted(result))
361
362 def test_bulk_insert(self):
363 conn = self.connect()

Callers 4

test_bulk_insertMethod · 0.95
test_issue_288Method · 0.95

Calls 4

cursorMethod · 0.80
executeMethod · 0.80
connectMethod · 0.45
fetchallMethod · 0.45

Tested by

no test coverage detected