Exemplo n.º 1
0
 def test2(self):
     """
     Stored routine with designation type rows_with_index must return empty array when no rwos are selected.
     """
     rows = DataLayer.tst_test_rows_with_index1(0)
     self.assertIsInstance(rows, dict)
     self.assertEqual(0, len(rows))
Exemplo n.º 2
0
 def test2(self):
     """
     Stored routine with designation type rows_with_index must return empty array when no rwos are selected.
     """
     rows = DataLayer.tst_test_rows_with_index1(0)
     self.assertIsInstance(rows, dict)
     self.assertEqual(0, len(rows))
Exemplo n.º 3
0
 def test1(self):
     """
     Stored routine with designation type rows_with_index must return multi dimensional array.
     """
     rows = DataLayer.tst_test_rows_with_index1(100)
     self.assertIsInstance(rows, dict)
     self.assertIn('a', rows)
     self.assertIn('b', rows['a'])
     self.assertIsInstance(rows['a']['b'], list)
     self.assertEqual(3, len(rows['a']['b']))
Exemplo n.º 4
0
 def test1(self):
     """
     Stored routine with designation type rows_with_index must return multi dimensional array.
     """
     rows = DataLayer.tst_test_rows_with_index1(100)
     self.assertIsInstance(rows, dict)
     self.assertIn('a', rows)
     self.assertIn('b', rows['a'])
     self.assertIsInstance(rows['a']['b'], list)
     self.assertEqual(3, len(rows['a']['b']))