

def test_stepEnabled(self, spinbox):
    assert spinbox.StepUpEnabled
    assert spinbox.StepDownEnabled
    assert (spinbox.stepEnabled() == (spinbox.StepUpEnabled | spinbox.StepDownEnabled))
    spinbox.setMinimum(0)
    spinbox.setMaximum(10)
    spinbox._lineEdit.setText(str((- 1)))
    assert (spinbox.stepEnabled() == spinbox.StepUpEnabled)
    spinbox._lineEdit.setText(str(11))
    assert (spinbox.stepEnabled() == spinbox.StepDownEnabled)

dataset/ETHPy150Open datalyze-solutions/pandas-qt/tests/test_BigIntSpinbox.py TestClass.test_stepEnabled/original