-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRowsTest.py
32 lines (27 loc) · 1.36 KB
/
RowsTest.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
31
32
from test.StratumTestCase import StratumTestCase
class RowsTest(StratumTestCase):
# ------------------------------------------------------------------------------------------------------------------
def test1(self):
"""
Stored routine with designation type rows must return an empty array when no rows are selected.
"""
ret = self._dl.tst_test_rows1(0)
self.assertIsInstance(ret, list)
self.assertEqual(0, len(ret))
# ------------------------------------------------------------------------------------------------------------------
def test2(self):
"""
Stored routine with designation type rows must return an array with 1 row when only 1 row is selected.
"""
ret = self._dl.tst_test_rows1(1)
self.assertIsInstance(ret, list)
self.assertEqual(1, len(ret))
# ------------------------------------------------------------------------------------------------------------------
def test3(self):
"""
Stored routine with designation type rows must return an array with 3 rows when 3 rows are selected.
"""
ret = self._dl.tst_test_rows1(3)
self.assertIsInstance(ret, list)
self.assertEqual(3, len(ret))
# ----------------------------------------------------------------------------------------------------------------------