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