Module ImportFrom alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call NameLoad Num Num body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call NameLoad Num Num body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call NameLoad Num Num body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str NameLoad For TupleStore NameStore NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A unittest TestCase N/A pyasn N/A os N/A logging N/A FAKE_IPASN_DB_PATH N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ ../data/ipasn.fake N/A IPASN_DB_PATH N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ ../data/ipasn_20140513.dat N/A IPASN6_DB_PATH N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ ../data/ipasn6_20151101.dat N/A logger N/A N/A logging getLogger TestSimple N/A TestCase N/A N/A asndb N/A N/A pyasn pyasn IPASN_DB_PATH N/A asndb_fake N/A N/A pyasn pyasn FAKE_IPASN_DB_PATH test_consistency N/A N/A self N/A N/A N/A 
            Tests if pyasn is consistently loaded and that it returns a consistent answer
         N/A db N/A N/A pyasn pyasn IPASN_DB_PATH N/A N/A asn prefix N/A N/A db lookup 8.8.8.8 N/A i N/A range 100 N/A N/A N/A tmp_asn tmp_prefix N/A N/A N/A self asndb lookup 8.8.8.8 N/A N/A N/A self assertEqual asn tmp_asn N/A N/A N/A self assertEqual prefix tmp_prefix N/A test_correctness N/A N/A self N/A N/A N/A 
            Tests if pyasn returns the correct AS number with simple data base
         N/A i N/A range 4 N/A N/A N/A asn prefix N/A N/A N/A self asndb_fake lookup N/A 1.0.0.%d i N/A N/A N/A self assertEqual 1 asn N/A N/A N/A self assertEqual 1.0.0.0/30 prefix N/A i N/A range 4 256 N/A N/A N/A asn prefix N/A N/A N/A self asndb_fake lookup N/A 1.0.0.%d i N/A N/A N/A self assertEqual 2 asn N/A N/A N/A self assertEqual 1.0.0.0/24 prefix N/A i N/A range 256 N/A N/A N/A asn prefix N/A N/A N/A self asndb_fake lookup N/A 2.0.0.%d i N/A N/A N/A self assertEqual 3 asn N/A N/A N/A self assertEqual 2.0.0.0/24 prefix N/A i N/A range 128 256 N/A N/A N/A asn prefix N/A N/A N/A self asndb_fake lookup N/A 3.%d.0.0 i N/A N/A N/A self assertEqual 4 asn N/A N/A N/A self assertEqual 3.0.0.0/8 prefix N/A i N/A range 0 128 N/A N/A N/A asn prefix N/A N/A N/A self asndb_fake lookup N/A 3.%d.0.0 i N/A N/A N/A self assertEqual 5 asn N/A N/A N/A self assertEqual 3.0.0.0/9 prefix N/A N/A asn prefix N/A N/A N/A self asndb_fake lookup 5.0.0.0 N/A N/A N/A self assertEqual None asn N/A N/A N/A self assertEqual None prefix N/A test_as_number_convert N/A N/A self N/A N/A N/A 
            Tests for correct conversion between 32-bit and ASDOT number formats for Autonomous System numbers.
         N/A N/A N/A self assertEqual AS1.5698 N/A N/A N/A pyasn pyasn convert_32bit_to_asdot_asn_format 71234 N/A N/A N/A self assertEqual AS2.321 N/A N/A N/A pyasn pyasn convert_32bit_to_asdot_asn_format 131393 N/A N/A N/A self assertEqual AS65535.0 N/A N/A N/A pyasn pyasn convert_32bit_to_asdot_asn_format 4294901760 N/A N/A N/A self assertEqual AS65535.65535 N/A N/A N/A pyasn pyasn convert_32bit_to_asdot_asn_format 4294967295 N/A N/A N/A self assertEqual AS0 N/A N/A N/A pyasn pyasn convert_32bit_to_asdot_asn_format 0 N/A N/A N/A self assertEqual 65536 N/A N/A N/A pyasn pyasn convert_asdot_to_32bit_asn AS1.0 N/A N/A N/A self assertEqual 71234 N/A N/A N/A pyasn pyasn convert_asdot_to_32bit_asn AS1.5698 N/A N/A N/A self assertEqual 4294967295 N/A N/A N/A pyasn pyasn convert_asdot_to_32bit_asn AS65535.65535 N/A N/A N/A self assertEqual 0 N/A N/A N/A pyasn pyasn convert_asdot_to_32bit_asn AS0 N/A N/A N/A self assertEqual 131393 N/A N/A N/A pyasn pyasn convert_asdot_to_32bit_asn AS2.321 N/A test_get_tud_prefixes N/A N/A self N/A N/A N/A 
            Tests if correct prefixes are returned for a predetermined AS
         N/A prefixes1 N/A N/A N/A self asndb get_as_prefixes 1128 N/A prefixes2 N/A N/A N/A self asndb get_as_prefixes 1128 N/A prefixes3 N/A N/A N/A self asndb get_as_prefixes 1128 N/A N/A N/A self assertEqual N/A set prefixes1 N/A set N/A 130.161.0.0/16 131.180.0.0/16 145.94.0.0/16 N/A N/A N/A self assertEqual prefixes1 prefixes2 N/A N/A N/A self assertEqual prefixes1 prefixes3 N/A test_get_prefixes2 N/A N/A self N/A N/A N/A 
            Tests get_as_prefixes() on a border case (bug report #10)
         N/A prefixes N/A N/A N/A self asndb get_as_prefixes 13289 N/A N/A N/A self assertEqual N/A set prefixes N/A set N/A 82.212.192.0/18 N/A prefixes N/A N/A N/A self asndb get_as_prefixes 11018 N/A N/A N/A self assertEqual N/A set prefixes N/A set N/A 216.69.64.0/19 N/A test_get_tud_effective_prefixes N/A N/A self N/A N/A N/A prefixes1 N/A N/A N/A self asndb get_as_prefixes_effective 1128 N/A N/A N/A self assertEqual N/A set prefixes1 N/A set N/A 130.161.0.0/16 131.180.0.0/16 145.94.0.0/16 N/A test_address_family N/A N/A self N/A N/A N/A 
            Tests if pyasn can determine correct and incorrect IPv4/IPv6 addresses (bug #14)
         N/A N/A asn prefix N/A N/A N/A self asndb lookup 8.8.8.8 N/A N/A asn prefix N/A N/A N/A self asndb lookup 2001:500:88:200::8 N/A N/A N/A self assertRaisesRegexp ValueError v4 N/A N/A self asndb lookup 8.8.8.800 N/A N/A N/A self assertRaisesRegexp ValueError v6 N/A N/A self asndb lookup 2001:500g:88:200::8 N/A test_ipv6 N/A N/A self N/A N/A N/A 
            Tests if IPv6 addresseses are lookedup correctly 
         N/A db N/A N/A pyasn pyasn IPASN6_DB_PATH N/A known_ips N/A N/A 2001:41d0:2:7a6::1 16276 N/A 2002:2d22:b585::2d22:b585 6939 N/A 2a02:2770:11:0:21a:4aff:fef0:e779 196752 N/A 2607:f8b0:4006:80f::200e 15169 N/A d::d None N/A N/A ip known_as known_ips N/A N/A N/A asn prefix N/A N/A db lookup ip N/A N/A N/A self assertEqual asn known_as N/A N/A