'Check the output for various numbers of components'

def test_n_components(self):

    self.send_signal(self.widget.Inputs.data, self.iris)
    for i in range(self.widget.n_components_spin.minimum(), self.widget.n_components_spin.maximum()):
        self.assertEqual(self.widget.data, self.iris)
        self.widget.n_components_spin.setValue(i)
        self.widget.n_components_spin.onEnter()
        self.widget.apply_button.button.click()
        self._compare_tables(self.get_output(self.widget.Outputs.transformed_data), i)
