def test_by_default_button_is_disable(self):
     model = PrimeNumberViewModel()
     self.assertEqual('disabled', model.is_button_enable())
    def test_when_clear_second_number_button_disabled(self):
        model = PrimeNumberViewModel(1, 10)
        model.set_end_value(None)

        self.assertEqual('disabled', model.is_button_enable())
 def test_when_enter_incorrect_values(self):
     model = PrimeNumberViewModel('asd', '11a')
     self.assertEqual('disabled', model.is_button_enable())
 def test_when_enter_both_number_button_enabled(self):
     model = PrimeNumberViewModel(1, 10)
     self.assertTrue(model.is_button_enable())