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