(self)
| 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""" |