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): DataLayer.tst_test_row1(2)
def test1(self): """ Stored routine with designation type row1 must return 1 row and 1 row only. """ ret = DataLayer.tst_test_row1(1) self.assertIsInstance(ret, dict)