MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / test_integer

Method test_integer

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

Source from the content-addressed store, hash-verified

122 c.execute("drop table test_dict")
123
124 def test_integer(self):
125 conn = self.connect()
126 c = conn.cursor()
127 c.execute("create table test_dict (a integer)")
128 test_value = 12345
129 try:
130 c.execute("insert into test_dict (a) values (%s)", test_value)
131 c.execute("select a from test_dict")
132 self.assertEqual((test_value,), c.fetchone())
133 finally:
134 c.execute("drop table test_dict")
135
136 def test_binary(self):
137 """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