<s> from __future__ import ( absolute_import , division , generators , nested_scopes , print_function , <EOL> unicode_literals , with_statement ) <EOL> from unittest import expectedFailure <EOL> from pants . core_tasks . list_goals import ListGoals <EOL> from pants . goal . goal import Goal <EOL> from pants_test . tasks . task_test_base import ConsoleTaskTestBase <EOL> class ListGoalsTest ( ConsoleTaskTestBase ) : <EOL> _INSTALLED_HEADER = '<STR_LIT>' <EOL> _UNDOCUMENTED_HEADER = '<STR_LIT>' <EOL> _LIST_GOALS_NAME = '<STR_LIT>' <EOL> _LIST_GOALS_DESC = '<STR_LIT>' <EOL> _LLAMA_NAME = '<STR_LIT>' <EOL> _LLAMA_DESC = '<STR_LIT>' <EOL> _ALPACA_NAME = '<STR_LIT>' <EOL> @ classmethod <EOL> def task_type ( cls ) : <EOL> return ListGoals <EOL> def test_list_goals ( self ) : <EOL> Goal . clear ( ) <EOL> self . assert_console_output ( self . _INSTALLED_HEADER ) <EOL> Goal . register ( self . _LIST_GOALS_NAME , self . _LIST_GOALS_DESC ) <EOL> self . assert_console_output ( <EOL> self . _INSTALLED_HEADER , <EOL> '<STR_LIT>' . format ( self . _LIST_GOALS_NAME , self . _LIST_GOALS_DESC ) , <EOL> ) <EOL> Goal . register ( self . _LLAMA_NAME , self . _LLAMA_DESC ) <EOL> self . assert_console_output ( <EOL> self . _INSTALLED_HEADER , <EOL> '<STR_LIT>' . format ( self . _LIST_GOALS_NAME , self . _LIST_GOALS_DESC ) , <EOL> '<STR_LIT>' . format ( self . _LLAMA_NAME , self . _LLAMA_DESC ) , <EOL> ) <EOL> Goal . register ( self . _ALPACA_NAME , description = '<STR_LIT>' ) <EOL> self . assert_console_output ( <EOL> self . _INSTALLED_HEADER , <EOL> '<STR_LIT>' . format ( self . _LIST_GOALS_NAME , self . _LIST_GOALS_DESC ) , <EOL> '<STR_LIT>' . format ( self . _LLAMA_NAME , self . _LLAMA_DESC ) , <EOL> ) <EOL> def test_list_goals_all ( self ) : <EOL> Goal . clear ( ) <EOL> Goal . register ( self . _LIST_GOALS_NAME , self . _LIST_GOALS_DESC ) <EOL> Goal . register ( self . _LLAMA_NAME , self . _LLAMA_DESC ) <EOL> Goal . register ( self . _ALPACA_NAME , description = '<STR_LIT>' ) <EOL> self . assert_console_output ( <EOL> self . _INSTALLED_HEADER , <EOL> '<STR_LIT>' . format ( self . _LIST_GOALS_NAME , self . _LIST_GOALS_DESC ) , <EOL> '<STR_LIT>' . format ( self . _LLAMA_NAME , self . _LLAMA_DESC ) , <EOL> '<STR_LIT>' , <EOL> self . _UNDOCUMENTED_HEADER , <EOL> '<STR_LIT>' . format ( self . _ALPACA_NAME ) , <EOL> options = { '<STR_LIT:all>' : True } <EOL> ) <EOL> @ expectedFailure <EOL> def test_list_goals_graph ( self ) : <EOL> Goal . clear ( ) <EOL> Goal . register ( self . _LIST_GOALS_NAME , self . _LIST_GOALS_DESC ) <EOL> Goal . register ( self . _LLAMA_NAME , self . _LLAMA_DESC ) <EOL> Goal . register ( self . _ALPACA_NAME , description = '<STR_LIT>' ) <EOL> self . assert_console_output ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:}>' , <EOL> options = { '<STR_LIT>' : True } <EOL> ) </s>
