def test_readSubArray_ordered(self):
        tid = self.create_table_with_data()
        ftc = FeatureTableConnection(client=self.cli, tableName=self.tableName)
        ftc.openTable(tid)

        can = collections.OrderedDict([(2, [0]), (1, [0,2])])
        xs = ftc.readSubArray(can, 0, 4)
        self.assertEqual(xs[1].values, [[], [1., 3.], [4., 6.], []])
        self.assertEqual(xs[0].values, [[7.], [], [8.], []])
    def test_readSubArray(self):
        tid = self.create_table_with_data()
        ftc = FeatureTableConnection(client=self.cli, tableName=self.tableName)
        ftc.openTable(tid)

        can = {1:[0,2], 2:[0]}
        xs = ftc.readSubArray(can, 0, 4)
        self.assertEqual(xs[0].values, [[], [1., 3.], [4., 6.], []])
        self.assertEqual(xs[1].values, [[7.], [], [8.], []])