def test_get_option_for_multi_shortcut(self): self.initialize_options() definition = InputDefinition([self.multi]) self.assertEqual(self.multi, definition.get_option_for_shortcut("m")) self.assertEqual(self.multi, definition.get_option_for_shortcut("mmm"))
def test_get_option_for_multi_shortcut(self): self.initialize_options() definition = InputDefinition([self.multi]) self.assertEqual(self.multi, definition.get_option_for_shortcut('m')) self.assertEqual(self.multi, definition.get_option_for_shortcut('mmm'))
def test_get_option_for_shortcut(self): self.initialize_options() definition = InputDefinition([self.foo]) self.assertEqual(self.foo, definition.get_option_for_shortcut("f"))
def test_get_option_for_shortcut(self): self.initialize_options() definition = InputDefinition([self.foo]) self.assertEqual(self.foo, definition.get_option_for_shortcut('f'))