Ejemplo n.º 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(DataError):
         DataLayer.tst_test_singleton0a(2)
Ejemplo n.º 2
0
 def test1(self):
     """
     Stored routine with designation type singleton0 must return null.
     """
     ret = DataLayer.tst_test_singleton0a(0)
     self.assertIsNone(ret)
Ejemplo n.º 3
0
 def test2(self):
     """
     Stored routine with designation type singleton0 must return 1 value.
     """
     ret = DataLayer.tst_test_singleton0a(1)
     self.assertIsInstance(ret, (str, int, float))