MCPcopy
hub / github.com/PyMySQL/PyMySQL / test_integer

Method test_integer

pymysql/tests/test_basic.py:125–135  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 c.execute("drop table test_dict")
124
125 def test_integer(self):
126 conn = self.connect()
127 c = conn.cursor()
128 c.execute("create table test_dict (a integer)")
129 test_value = 12345
130 try:
131 c.execute("insert into test_dict (a) values (%s)", test_value)
132 c.execute("select a from test_dict")
133 self.assertEqual((test_value,), c.fetchone())
134 finally:
135 c.execute("drop table test_dict")
136
137 def test_binary(self):
138 """test binary data"""

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected