예제 #1
0
 def test_default_button_is_disable(self):
     model = VolumeViewModel()
     self.assertEqual('disabled', model.is_button_enable())
예제 #2
0
 def test_button_disabled_3_none(self):
     model = VolumeViewModel(3, 5)
     model.set_end_value(None)
     self.assertEqual('disabled', model.is_button_enable())
예제 #3
0
 def test_entered_incorrect_values(self):
     model = VolumeViewModel('asd', '11a')
     self.assertEqual('disabled', model.is_button_enable())
예제 #4
0
 def test_button_enabled_3_5(self):
     model = VolumeViewModel(3, 5)
     self.assertTrue(model.is_button_enable())