-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInsertManyTest.py
30 lines (24 loc) · 987 Bytes
/
InsertManyTest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from test.StratumTestCase import StratumTestCase
class InsertManyTest(StratumTestCase):
"""
Test cases for designation type insert_many.
"""
# ------------------------------------------------------------------------------------------------------------------
def test_with_ignoring_columns(self):
"""
Test with ignored columns.
"""
rows = [{'field1': 1,
'field4': 4,
'field5': 5},
{'field1': 11,
'field4': 14,
'field5': 15},
{'field1': 21,
'field4': 24,
'field5': 25}]
count1 = self._dl.tst_test_insert_many02(rows)
self.assertEqual(3, count1)
count2 = self._dl.execute_singleton1('select count(*) from TST_TEMPO')
self.assertEqual(3, count2)
# ----------------------------------------------------------------------------------------------------------------------