'Check if the right equation is written according to kernel'

def test_kernel_equation(self):

    for i in range(4):
        if self.widget.kernel_box.buttons[i].isChecked():
            self.assertEqual(self.widget.kernel_eq, self.widget.kernels[i][1])
            break
    for i in range(4):
        self.widget.kernel_box.buttons[i].click()
        self.assertEqual(self.widget.kernel_eq, self.widget.kernels[i][1])
