'Check visibility of the table after selecting number of clusters'

def test_optimization_report_display(self):

    self.send_signal(self.widget.Inputs.data, self.iris)
    self.widget.optimize_k = True
    radio_buttons = self.widget.controls.optimize_k.findChildren(QRadioButton)
    radio_buttons[0].click()
    self.assertFalse(self.widget.optimize_k)
    self.assertTrue(self.widget.mainArea.isHidden())
    radio_buttons[1].click()
    self.assertTrue(self.widget.optimize_k)
    self.assertFalse(self.widget.mainArea.isHidden())
    self.widget.apply_button.button.click()
    self.assertEqual((self.widget.table_view.model().rowCount() > 0), True)
