Module Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore BinOpBitXor Call NameLoad Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Num Call NameLoad Str NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Str Num Call NameLoad Str TupleLoad Str Num AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Num Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Num Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Num Num Assign NameStore ListComp Call NameLoad keyword NameLoad comprehension NameStore Call NameLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLt NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Num Num Assign NameStore ListComp Call NameLoad keyword NameLoad comprehension NameStore Call NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLt NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Num Str Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A random N/A hashlib twisted.trial unittest dht.node Node NodeHeap dht.tests.utils mknode dht.utils digest protos objects NodeTest N/A N/A unittest TestCase N/A test_longID N/A N/A self N/A N/A N/A rid N/A N/A N/A N/A hashlib sha1 N/A str N/A N/A random getrandbits 255 digest N/A n N/A Node rid N/A N/A N/A self assertEqual N/A n long_id N/A int N/A N/A rid encode hex 16 N/A test_distanceCalculation N/A N/A self N/A N/A N/A ridone N/A N/A hashlib sha1 N/A str N/A N/A random getrandbits 255 N/A ridtwo N/A N/A hashlib sha1 N/A str N/A N/A random getrandbits 255 N/A shouldbe N/A N/A int N/A N/A ridone hexdigest 16 N/A int N/A N/A ridtwo hexdigest 16 N/A none N/A Node N/A N/A ridone digest N/A ntwo N/A Node N/A N/A ridtwo digest N/A N/A N/A self assertEqual N/A N/A none distanceTo ntwo shouldbe N/A test_create_proto N/A N/A self N/A N/A N/A rid N/A N/A N/A N/A hashlib sha1 N/A str N/A N/A random getrandbits 255 digest N/A pubkey N/A digest pubkey N/A addr N/A N/A N/A objects Node IPAddress N/A N/A addr ip 127.0.0.1 N/A N/A addr port 1234 N/A relay_addr N/A N/A N/A objects Node IPAddress N/A N/A relay_addr ip 127.0.0.1 N/A N/A relay_addr port 1234 N/A n1 N/A N/A objects Node N/A N/A n1 guid rid N/A N/A n1 publicKey pubkey N/A N/A n1 vendor False N/A N/A N/A N/A n1 nodeAddress MergeFrom addr N/A N/A n1 natType N/A objects FULL_CONE N/A n2 N/A Node rid 127.0.0.1 1234 N/A digest pubkey None N/A objects FULL_CONE False N/A N/A N/A self assertEqual n1 N/A N/A n2 getProto N/A N/A n1 vendor True N/A N/A N/A N/A n1 relayAddress MergeFrom relay_addr N/A n2 N/A Node rid 127.0.0.1 1234 N/A digest pubkey N/A 127.0.0.1 1234 N/A objects FULL_CONE True N/A N/A N/A self assertEqual n1 N/A N/A n2 getProto N/A test_tuple N/A N/A self N/A N/A N/A n N/A Node 127.0.0.1 0 testkey N/A i N/A N/A n __iter__ N/A N/A N/A self assertIn 127.0.0.1 i N/A N/A N/A self assertIn 0 i N/A N/A N/A self assertIn testkey i N/A N/A NodeHeapTest N/A N/A unittest TestCase N/A test_maxSize N/A N/A self N/A N/A N/A n N/A NodeHeap N/A mknode intid 0 3 N/A N/A N/A self assertEqual 0 N/A len n N/A d N/A range 10 N/A N/A N/A N/A n push N/A mknode intid d N/A N/A N/A self assertEqual 3 N/A len n N/A N/A N/A self assertEqual 3 N/A len N/A list n N/A test_iteration N/A N/A self N/A N/A N/A heap N/A NodeHeap N/A mknode intid 0 5 N/A nodes N/A N/A mknode intid x N/A x N/A range 10 N/A N/A index node N/A enumerate nodes N/A N/A N/A N/A heap push node N/A N/A index node N/A enumerate heap N/A N/A N/A N/A self assertEqual index N/A node long_id N/A N/A N/A self assertTrue N/A index 5 N/A test_remove N/A N/A self N/A N/A N/A heap N/A NodeHeap N/A mknode intid 0 5 N/A nodes N/A N/A mknode intid x N/A x N/A range 10 N/A node nodes N/A N/A N/A N/A heap push node N/A N/A N/A heap remove N/A N/A N/A nodes N/A 0 id N/A N/A nodes N/A 1 id N/A N/A N/A self assertEqual N/A len N/A list heap 5 N/A N/A index node N/A enumerate heap N/A N/A N/A N/A self assertEqual N/A index 2 N/A node long_id N/A N/A N/A self assertTrue N/A index 5 N/A test_getNoneNodeById N/A N/A self N/A N/A N/A n N/A Node 127.0.0.1 0 testkey N/A nh N/A NodeHeap n 5 N/A val N/A N/A nh getNodeById N/A N/A N/A self assertIsNone val N/A N/A