def test_ask_confirmation_after_warns(self, ask): ask.return_value = True check(data) ask.assert_called_with('Do you want to continue anyway?', default=False)
def test_ask_for_seing_output(self, ask): check(data) self.assertTrue(ask.called)
def test_skip_if_not_warns_found(self, getvalue, ask): getvalue.return_value = '' check(data) self.assertFalse(ask.called)
def test_nop_when_no_python_found(self, find, ask): find.return_value = [] check(data) self.assertFalse(ask.called)