def test_default_button_is_disable(self): model = VolumeViewModel() self.assertEqual('disabled', model.is_button_enable())
def test_button_disabled_3_none(self): model = VolumeViewModel(3, 5) model.set_end_value(None) self.assertEqual('disabled', model.is_button_enable())
def test_entered_incorrect_values(self): model = VolumeViewModel('asd', '11a') self.assertEqual('disabled', model.is_button_enable())
def test_button_enabled_3_5(self): model = VolumeViewModel(3, 5) self.assertTrue(model.is_button_enable())