def test_should_return_non_when_plugin_is_refused_uppercase(self, prompt): prompt.return_value = 'N' self.assertEqual(suggest('plugin'), None)
def test_should_return_plugin_when_plugin_is_chosen_uppercase( self, prompt): prompt.return_value = 'Y' self.assertEqual(suggest('plugin'), 'plugin')
def test_should_return_plugin_when_choice_is_skipped(self, prompt): prompt.return_value = '' self.assertEqual(suggest('plugin'), 'plugin')
def test_should_return_plugin_when_plugin_is_chosen_uppercase(self, prompt): prompt.return_value = 'Y' self.assertEqual(suggest('plugin'), 'plugin')