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

Method test_issue_1206

pymysql/tests/test_issues.py:505–523  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

503 self.assertTrue(isinstance(row[0], bytes))
504
505 def test_issue_1206(self):
506 conn = pymysql.connect(charset="utf8", **self.databases[0])
507
508 cur = conn.cursor()
509 cur.execute("DROP PROCEDURE IF EXISTS `foo.bar`")
510 try:
511 cur.execute(
512 dedent("""\
513 create procedure `foo.bar` (arg1 int)
514 begin
515 select arg1*2;
516 end
517 """)
518 )
519
520 cur.callproc("foo.bar", args=(123,))
521 self.assertEqual(cur.fetchone()[0], 246)
522 finally:
523 cur.execute("DROP PROCEDURE IF EXISTS `foo.bar`")

Callers

nothing calls this directly

Calls 5

cursorMethod · 0.80
executeMethod · 0.80
callprocMethod · 0.80
connectMethod · 0.45
fetchoneMethod · 0.45

Tested by

no test coverage detected