本文整理汇总了Python中pystratum_test.TestDataLayer.TestDataLayer.tst_test_rows1方法的典型用法代码示例。如果您正苦于以下问题:Python TestDataLayer.tst_test_rows1方法的具体用法?Python TestDataLayer.tst_test_rows1怎么用?Python TestDataLayer.tst_test_rows1使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pystratum_test.TestDataLayer.TestDataLayer
的用法示例。
在下文中一共展示了TestDataLayer.tst_test_rows1方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test3
# 需要导入模块: from pystratum_test.TestDataLayer import TestDataLayer [as 别名]
# 或者: from pystratum_test.TestDataLayer.TestDataLayer import tst_test_rows1 [as 别名]
def test3(self):
"""
Stored routine with designation type rows must return an array with 3 rows when 3 rows are selected.
"""
ret = TestDataLayer.tst_test_rows1(3)
self.assertIsInstance(ret, list)
self.assertEqual(3, len(ret))
示例2: test1
# 需要导入模块: from pystratum_test.TestDataLayer import TestDataLayer [as 别名]
# 或者: from pystratum_test.TestDataLayer.TestDataLayer import tst_test_rows1 [as 别名]
def test1(self):
"""
Stored routine with designation type rows must return an empty array when no rows are selected.
"""
ret = TestDataLayer.tst_test_rows1(0)
self.assertIsInstance(ret, list)
self.assertEqual(0, len(ret))
示例3: test2
# 需要导入模块: from pystratum_test.TestDataLayer import TestDataLayer [as 别名]
# 或者: from pystratum_test.TestDataLayer.TestDataLayer import tst_test_rows1 [as 别名]
def test2(self):
"""
Stored routine with designation type rows must return an array with 1 row when only 1 row is selected.
"""
ret = TestDataLayer.tst_test_rows1(1)
self.assertIsInstance(ret, list)
self.assertEqual(1, len(ret))