Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias identifier Import alias ImportFrom alias identifier FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr Index Num attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr Index Num attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str attr Index Num attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str TupleLoad Dict Assign AttributeStore NameLoad attr Call NameLoad Str TupleLoad Dict Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Str TupleLoad Dict Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Dict Str Str Str Dict Str Str Dict Str Str Str NameLoad With Call AttributeLoad NameLoad attr Str NameStore body For NameStore NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A N/A ast N/A os N/A shutil N/A sys N/A tempfile N/A mock N/A six.moves.builtins builtins N/A testtools bandit.core utils b_utils _touch N/A N/A path N/A N/A N/A Create an empty file at ``path``. N/A newf N/A open path w N/A N/A N/A newf close N/A UtilTests N/A N/A testtools TestCase N/A N/A This set of tests exercises bandit.core.util functions. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super UtilTests self setUp N/A N/A N/A self _setup_get_module_qualname_from_path N/A _setup_get_module_qualname_from_path N/A N/A self N/A N/A N/A Setup a fake directory for testing get_module_qualname_from_path().

        Create temporary directory and then create fake .py files
        within directory structure.  We setup test cases for
        a typical module, a path misssing a middle __init__.py,
        no __init__.py anywhere in path, symlinking .py files.
         N/A N/A self tempdir N/A N/A tempfile mkdtemp N/A N/A N/A self addCleanup N/A shutil rmtree N/A self tempdir N/A N/A self reltempdir N/A N/A N/A os path relpath N/A self tempdir N/A N/A N/A os makedirs N/A N/A N/A os path join N/A self tempdir good a b c 493 N/A N/A _touch N/A N/A N/A os path join N/A self tempdir good __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir good a __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir good a b __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir good a b c __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir good a b c test_typical.py N/A N/A N/A os makedirs N/A N/A N/A os path join N/A self tempdir missingmid a b c 493 N/A N/A _touch N/A N/A N/A os path join N/A self tempdir missingmid __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir missingmid a b __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir missingmid a b c __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir missingmid a b c test_missingmid.py N/A N/A N/A os makedirs N/A N/A N/A os path join N/A self tempdir missingend a b c 493 N/A N/A _touch N/A N/A N/A os path join N/A self tempdir missingend __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir missingend a b __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir missingend a b c test_missingend.py N/A N/A N/A os makedirs N/A N/A N/A os path join N/A self tempdir syms a 493 N/A N/A _touch N/A N/A N/A os path join N/A self tempdir syms __init__.py N/A N/A _touch N/A N/A N/A os path join N/A self tempdir syms a __init__.py N/A N/A N/A os symlink N/A N/A N/A os path join N/A self tempdir good a b N/A N/A N/A os path join N/A self tempdir syms a bsym N/A test_get_module_qualname_from_path_abs_typical N/A N/A self N/A N/A N/A Test get_module_qualname_from_path with typical absolute paths. N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join N/A self tempdir good a b c test_typical.py N/A N/A N/A self assertEqual good.a.b.c.test_typical name N/A test_get_module_qualname_from_path_with_dot N/A N/A self N/A N/A N/A Test get_module_qualname_from_path with a "." . N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join . __init__.py N/A N/A N/A self assertEqual __init__ name N/A test_get_module_qualname_from_path_abs_missingmid N/A N/A self N/A N/A N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join N/A self tempdir missingmid a b c test_missingmid.py N/A N/A N/A self assertEqual b.c.test_missingmid name N/A test_get_module_qualname_from_path_abs_missingend N/A N/A self N/A N/A N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join N/A self tempdir missingend a b c test_missingend.py N/A N/A N/A self assertEqual test_missingend name N/A test_get_module_qualname_from_path_abs_syms N/A N/A self N/A N/A N/A Test get_module_qualname_from_path with symlink in path. N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join N/A self tempdir syms a bsym c test_typical.py N/A N/A N/A self assertEqual syms.a.bsym.c.test_typical name N/A test_get_module_qualname_from_path_rel_typical N/A N/A self N/A N/A N/A Test get_module_qualname_from_path with typical relative paths. N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join N/A self reltempdir good a b c test_typical.py N/A N/A N/A self assertEqual good.a.b.c.test_typical name N/A test_get_module_qualname_from_path_rel_missingmid N/A N/A self N/A N/A N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join N/A self reltempdir missingmid a b c test_missingmid.py N/A N/A N/A self assertEqual b.c.test_missingmid name N/A test_get_module_qualname_from_path_rel_missingend N/A N/A self N/A N/A N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join N/A self reltempdir missingend a b c test_missingend.py N/A N/A N/A self assertEqual test_missingend name N/A test_get_module_qualname_from_path_rel_syms N/A N/A self N/A N/A N/A Test get_module_qualname_from_path with symbolic relative paths. N/A name N/A N/A b_utils get_module_qualname_from_path N/A N/A N/A os path join N/A self reltempdir syms a bsym c test_typical.py N/A N/A N/A self assertEqual syms.a.bsym.c.test_typical name N/A test_get_module_qualname_from_path_sys N/A N/A self N/A N/A N/A Test get_module_qualname_from_path with system module paths. N/A name N/A N/A b_utils get_module_qualname_from_path N/A os __file__ N/A N/A N/A self assertEqual os name N/A test_get_module_qualname_from_path_invalid_path N/A N/A self N/A N/A N/A Test get_module_qualname_from_path with invalid path. N/A name N/A N/A b_utils get_module_qualname_from_path /a/b/c/d/e.py N/A N/A N/A self assertEqual e name N/A test_get_module_qualname_from_path_dir N/A N/A self N/A N/A N/A Test get_module_qualname_from_path with dir path. N/A N/A N/A self assertRaises N/A b_utils InvalidModulePath N/A b_utils get_module_qualname_from_path /tmp/ N/A test_namespace_path_join N/A N/A self N/A N/A N/A p N/A N/A b_utils namespace_path_join base1.base2 name N/A N/A N/A self assertEqual base1.base2.name p N/A test_namespace_path_split N/A N/A self N/A N/A N/A N/A head tail N/A N/A b_utils namespace_path_split base1.base2.name N/A N/A N/A self assertEqual base1.base2 head N/A N/A N/A self assertEqual name tail N/A test_get_call_name1 N/A N/A self N/A N/A N/A Gets a qualified call name. N/A tree N/A N/A N/A N/A N/A ast parse a.b.c.d(x,y) body N/A 0 value N/A name N/A N/A b_utils get_call_name tree N/A N/A N/A N/A self assertEqual a.b.c.d name N/A test_get_call_name2 N/A N/A self N/A N/A N/A Gets qualified call name and resolves aliases. N/A tree N/A N/A N/A N/A N/A ast parse a.b.c.d(x,y) body N/A 0 value N/A name N/A N/A b_utils get_call_name tree N/A a alias.x.y N/A N/A N/A self assertEqual alias.x.y.b.c.d name N/A name N/A N/A b_utils get_call_name tree N/A a.b alias.x.y N/A N/A N/A self assertEqual alias.x.y.c.d name N/A name N/A N/A b_utils get_call_name tree N/A a.b.c.d alias.x.y N/A N/A N/A self assertEqual alias.x.y name N/A test_get_call_name3 N/A N/A self N/A N/A N/A Getting name for a complex call. N/A tree N/A N/A N/A N/A N/A ast parse a.list[0](x,y) body N/A 0 value N/A name N/A N/A b_utils _get_attr_qual_name tree N/A N/A N/A N/A self assertEqual name N/A test_linerange N/A N/A self N/A N/A N/A N/A self test_file N/A open ./examples/jinja2_templating.py N/A N/A self tree N/A N/A ast parse N/A N/A N/A self test_file read N/A line N/A N/A N/A self tree body N/A 8 N/A lrange N/A N/A b_utils linerange line N/A N/A N/A self assertEqual 3 N/A len lrange N/A N/A N/A self assertEqual N/A 11 12 13 N/A list lrange N/A test_path_for_function N/A N/A self N/A N/A N/A path N/A N/A b_utils get_path_for_function N/A b_utils get_path_for_function N/A N/A N/A self assertEqual path N/A b_utils __file__ N/A test_path_for_function_no_file N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A b_utils get_path_for_function N/A sys settrace N/A test_path_for_function_no_module N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A b_utils get_path_for_function 1 N/A test_escaped_representation_simple N/A N/A self N/A N/A N/A res N/A N/A b_utils escaped_bytes_representation ascii N/A N/A N/A self assertEqual res ascii N/A test_escaped_representation_valid_not_printable N/A N/A self N/A N/A N/A res N/A N/A b_utils escaped_bytes_representation \u0000 N/A N/A N/A self assertEqual res \x00 N/A test_escaped_representation_invalid N/A N/A self N/A N/A N/A res N/A N/A b_utils escaped_bytes_representation \uffff N/A N/A N/A self assertEqual res \uffff N/A test_escaped_representation_mixed N/A N/A self N/A N/A N/A res N/A N/A b_utils escaped_bytes_representation ascii\u0000\uffff N/A N/A N/A self assertEqual res ascii\x00\uffff N/A test_deepgetattr N/A N/A self N/A N/A N/A a N/A type N/A N/A N/A N/A a b N/A type N/A N/A N/A N/A N/A a b c N/A type N/A N/A N/A N/A N/A N/A a b c d deep value N/A N/A N/A N/A a b c d2 deep value 2 N/A N/A N/A N/A a b c e a.b.c N/A N/A N/A self assertEqual deep value N/A N/A b_utils deepgetattr N/A N/A a b c d N/A N/A N/A self assertEqual deep value 2 N/A N/A b_utils deepgetattr N/A N/A a b c d2 N/A N/A N/A self assertEqual a.b.c N/A N/A b_utils deepgetattr N/A N/A a b c e N/A N/A N/A self assertEqual deep value N/A N/A b_utils deepgetattr a b.c.d N/A N/A N/A self assertEqual deep value 2 N/A N/A b_utils deepgetattr a b.c.d2 N/A N/A N/A self assertRaises AttributeError N/A b_utils deepgetattr N/A a b z N/A test_parse_ini_file N/A N/A self N/A N/A N/A tests N/A N/A content expected [bandit]
exclude=/abc,/def N/A exclude /abc,/def N/A content expected [Blabla]
something=something None N/A N/A N/A tempfile NamedTemporaryFile r+ t N/A N/A test tests N/A N/A f N/A open N/A t name w N/A N/A N/A f write N/A test N/A content N/A N/A N/A f close N/A N/A N/A self assertEqual N/A N/A b_utils parse_ini_file N/A t name N/A test N/A expected N/A test_check_output_destination_dir N/A N/A self isdir N/A N/A N/A N/A isdir return_value True _b_tester N/A N/A a b N/A N/A N/A N/A N/A b_utils output_file a b N/A N/A N/A N/A N/A N/A self assertRaises RuntimeError _b_tester derp r N/A N/A N/A mock patch os.path.isdir test_check_output_destination_bad N/A N/A self isdir N/A N/A N/A N/A N/A N/A mock patch object builtins open b_open N/A N/A N/A isdir return_value False N/A N/A b_open side_effect N/A IOError _b_tester N/A N/A a b N/A N/A N/A N/A N/A b_utils output_file a b N/A N/A N/A N/A N/A N/A self assertRaises IOError _b_tester derp r N/A N/A N/A mock patch os.path.isdir test_check_ast_node_good N/A N/A self N/A N/A N/A node N/A N/A b_utils check_ast_node Call N/A N/A N/A self assertEqual Call node N/A test_check_ast_node_bad_node N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A b_utils check_ast_node Derp N/A test_check_ast_node_bad_type N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A b_utils check_ast_node walk N/A N/A