'Check if the right spins are visible according to kernel'

def test_kernel_spins(self):

    for (i, hidden) in enumerate([[True, True, True], [False, False, False], [False, True, True], [False, False, True]]):
        if self.widget.kernel_box.buttons[i].isChecked():
            self.assertEqual([self.widget._kernel_params[j].box.isHidden() for j in range(3)], hidden)
            break
    for (i, hidden) in enumerate([[True, True, True], [False, False, False], [False, True, True], [False, False, True]]):
        self.widget.kernel_box.buttons[i].click()
        self.assertEqual([self.widget._kernel_params[j].box.isHidden() for j in range(3)], hidden)
