def test_batch_set_data_on_last_row_extends_table(self):
     model = ArrayModel()
     model.reset(Array([5.0]))
     model.batch_set_data([model.index(1, 0)], ["2.3"])
     self.assertEqual(model.rowCount(), 3)
     self.assertEqual(model.index(0, 0).data(), 5.0)
 def test_batch_set_data(self):
     model = ArrayModel()
     model.reset(Array([5.0]))
     model.batch_set_data([model.index(0, 0)], ["2.3"])
     self.assertEqual(model.rowCount(), 2)
     self.assertEqual(model.index(0, 0).data(), 2.3)