示例#1
0
 def test3(self):
     """
     An exception must be thrown when a stored routine with designation type row0 returns more than 1 rows.
     @expectedException Exception
     """
     with self.assertRaises(Exception):
         DataLayer.tst_test_row0(2)
示例#2
0
 def test1(self):
     """
     Stored routine with designation type row0 must return null.
     """
     ret = DataLayer.tst_test_row0(0)
     self.assertIsNone(ret)
示例#3
0
 def test2(self):
     """
     Stored routine with designation type row0 must return 1 row.
     """
     ret = DataLayer.tst_test_row0(1)
     self.assertIsInstance(ret, dict)