Module ImportFrom alias alias alias alias alias alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Call NameLoad keyword Str keyword Str keyword NameLoad Assign NameStore Str Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword ListLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os pants.backend.jvm.artifact Artifact pants.backend.jvm.repository Repository pants.backend.python.python_artifact PythonArtifact pants.backend.python.targets.python_library PythonLibrary pants.backend.python.targets.python_target PythonTarget pants.base.exceptions TargetDefinitionException pants.build_graph.resources Resources pants_test.base_test BaseTest PythonTargetTest N/A BaseTest N/A test_validation N/A N/A self N/A N/A N/A internal_repo N/A Repository url None push_db_basedir None N/A N/A N/A self assertRaises TargetDefinitionException N/A N/A N/A N/A self make_target target_type PythonTarget spec :one provides N/A Artifact org com.twitter name one-jar repo internal_repo N/A spec //:test-with-PythonArtifact N/A pa N/A PythonArtifact name foo version 1.0 description foo N/A pt_with_artifact N/A N/A self make_target spec spec target_type PythonTarget provides pa N/A N/A N/A self assertEquals N/A N/A pt_with_artifact address spec spec N/A spec //:test-with-none N/A pt_no_artifact N/A N/A self make_target spec spec target_type PythonTarget provides None N/A N/A N/A self assertEquals N/A N/A pt_no_artifact address spec spec N/A assert_single_resource_dep N/A N/A self target expected_resource_path expected_resource_contents N/A N/A N/A N/A N/A self assertEqual 1 N/A len N/A target dependencies N/A resources_dep N/A N/A target dependencies N/A 0 N/A N/A N/A self assertIsInstance resources_dep Resources N/A N/A N/A self assertEqual 1 N/A len N/A target resources N/A resources_tgt N/A N/A target resources N/A 0 N/A N/A N/A self assertIs resources_dep resources_tgt N/A N/A N/A self assertEqual N/A expected_resource_path N/A N/A resources_tgt sources_relative_to_buildroot N/A resource_rel_path N/A N/A N/A resources_tgt sources_relative_to_buildroot N/A 0 N/A N/A open N/A N/A N/A os path join N/A self build_root resource_rel_path fp N/A N/A N/A N/A self assertEqual expected_resource_contents N/A N/A fp read N/A resources_tgt N/A test_resources N/A N/A self N/A N/A N/A N/A N/A self create_file test/data.txt contents 42 N/A lib N/A N/A self make_target spec test:lib target_type PythonLibrary resources N/A data.txt N/A N/A N/A self assert_single_resource_dep lib expected_resource_path test/data.txt expected_resource_contents 42 N/A test_resource_targets N/A N/A self N/A N/A N/A N/A N/A self create_file res/data.txt contents 1/137 N/A res N/A N/A self make_target spec res:resources target_type Resources sources N/A data.txt N/A lib N/A N/A self make_target spec test:lib target_type PythonLibrary resource_targets N/A N/A N/A res address spec N/A resource_dep N/A N/A self assert_single_resource_dep lib expected_resource_path res/data.txt expected_resource_contents 1/137 N/A N/A N/A self assertIs res resource_dep N/A N/A