Ejemplo n.º 1
0
 def test2(self):
     """
     Stored routine with designation type rows_with_key must return empty array when no rows are selected.
     """
     rows = DataLayer.tst_test_rows_with_key1(0)
     self.assertIsInstance(rows, dict)
     self.assertEqual(0, len(rows))
Ejemplo n.º 2
0
 def test2(self):
     """
     Stored routine with designation type rows_with_key must return empty array when no rows are selected.
     """
     rows = DataLayer.tst_test_rows_with_key1(0)
     self.assertIsInstance(rows, dict)
     self.assertEqual(0, len(rows))
Ejemplo n.º 3
0
 def test1(self):
     """
     Stored routine with designation type rows_with_key must return multi dimensional array.
     """
     rows = DataLayer.tst_test_rows_with_key1(100)
     self.assertIsInstance(rows, dict)
     self.assertEqual(1, len(rows))
     self.assertTrue('a' in rows)
     self.assertTrue('b' in rows['a'])
     self.assertNotEqual(0, len(rows['a']['b']))
     self.assertTrue('c1' in rows['a']['b'])
     self.assertNotEqual(0, len(rows['a']['b']['c1']))
Ejemplo n.º 4
0
 def test1(self):
     """
     Stored routine with designation type rows_with_key must return multi dimensional array.
     """
     rows = DataLayer.tst_test_rows_with_key1(100)
     self.assertIsInstance(rows, dict)
     self.assertEqual(1, len(rows))
     self.assertTrue('a' in rows)
     self.assertTrue('b' in rows['a'])
     self.assertNotEqual(0, len(rows['a']['b']))
     self.assertTrue('c1' in rows['a']['b'])
     self.assertNotEqual(0, len(rows['a']['b']['c1']))