(self)
| 111 | c.execute("drop table test_dict") |
| 112 | |
| 113 | def test_string(self): |
| 114 | conn = self.connect() |
| 115 | c = conn.cursor() |
| 116 | c.execute("create table test_dict (a text)") |
| 117 | test_value = "I am a test string" |
| 118 | try: |
| 119 | c.execute("insert into test_dict (a) values (%s)", test_value) |
| 120 | c.execute("select a from test_dict") |
| 121 | self.assertEqual((test_value,), c.fetchone()) |
| 122 | finally: |
| 123 | c.execute("drop table test_dict") |
| 124 | |
| 125 | def test_integer(self): |
| 126 | conn = self.connect() |