示例#1
0
 def test3(self):
     """
     An exception must be thrown when a stored routine with designation type singleton0 returns more than 1 values.
     """
     with self.assertRaises(Exception):
         DataLayer.tst_test_singleton0(3)
示例#2
0
 def test1(self):
     """
     Stored routine with designation type singleton0 must return null.
     """
     ret = DataLayer.tst_test_singleton0(0)
     self.assertIsNone(ret)
示例#3
0
 def test2(self):
     """
     Stored routine with designation type singleton0 must return 1 value.
     """
     ret = DataLayer.tst_test_singleton0(1)
     self.assertIsInstance(ret, (str, int, float))