def test_delete_command_from_store_with_exit_input_should_not_delete(self):
     store = command_store_lib.CommandStore()
     command = Command("testing delete this command")
     store.add_command(command)
     self.assertEqual(store.get_num_commands(), 1)
     interactive = InteractiveCommandExecutor()
     self.set_input('quit')
     self.assertFalse(interactive.delete_interaction(store, [command]))
     self.assertEqual(store.get_num_commands(), 1)
     self.reset_input()
 def test_delete_command_from_store_with_1_2_should_remove_all(self):
     store = command_store_lib.CommandStore()
     command = Command("testing delete this command")
     command2 = Command("remove this also")
     self.assertEqual(store.get_num_commands(), 0)
     store.add_command(command)
     store.add_command(command2)
     self.assertEqual(store.get_num_commands(), 2)
     interactive = InteractiveCommandExecutor()
     self.set_input('1, 2', 'y')
     self.assertTrue(interactive.delete_interaction(store, [command, command2]))
     self.assertEqual(store.get_num_commands(), 0)
     self.reset_input()