Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A click.testing CliRunner N/A requests N/A tower_cli tower_cli.api client tower_cli.commands.version version tests.compat unittest mock VersionTests N/A N/A unittest TestCase N/A N/A A set of tests to ensure that the version command runs in the way
    that we expect.
     setUp N/A N/A self N/A N/A N/A N/A self runner N/A CliRunner N/A test_version_command N/A N/A self N/A N/A N/A Establish that the version command returns the output we
        expect.
         N/A N/A client test_mode t N/A N/A N/A N/A t register_json /config/ N/A version 4.21 N/A result N/A N/A N/A self runner invoke version N/A N/A N/A self assertEqual N/A result exit_code 0 N/A N/A N/A self assertEqual N/A N/A N/A result output strip N/A Ansible Tower 4.21
Tower CLI %s N/A tower_cli __version__ N/A test_cannot_connect N/A N/A self N/A N/A N/A Establish that the version command gives a nice error in cases
        where it cannot connect to Tower.
         N/A N/A N/A N/A mock patch object client get get N/A N/A N/A get side_effect N/A N/A requests exceptions RequestException N/A result N/A N/A N/A self runner invoke version N/A N/A N/A self assertEqual N/A result exit_code 1 N/A N/A N/A self assertIn Could not connect to Ansible Tower. N/A result output N/A N/A