Module Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Print BinOpAdd Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad NameLoad attr decorator_list Return TupleLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign TupleStore NameStore NameStore Call NameLoad TryFinally body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Call NameLoad keyword Str finalbody Expr Call NameLoad Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad CompareIn BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad CompareIn BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr finalbody Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign TupleStore NameStore NameStore Call NameLoad TryFinally body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Str finalbody Expr Call NameLoad Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr finalbody Expr Call NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Assign NameStore ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call NameLoad CompareIn Str AttributeLoad NameLoad attr finalbody Expr Call NameLoad finalbody For NameStore NameLoad body Expr Call NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Expr Call NameLoad CompareIn Str Call NameLoad Call NameLoad NameLoad Str keyword Str Expr Call NameLoad CompareIn Str Call NameLoad Call NameLoad NameLoad Str keyword Str Assign NameStore Str Expr Call NameLoad CompareIn Str Call NameLoad Call NameLoad NameLoad Str keyword Str Assign NameStore Str Assign NameStore Call NameLoad Call NameLoad NameLoad Str Expr Call NameLoad CompareIn Str NameLoad keyword Str decorator_list
N/A N/A threading N/A logging N/A BaseHTTPServer N/A StringIO nose.tools assert_true assert_false django.test.client Client desktop.lib.django_test_util make_logged_in_client proxy.views _rewrite_links N/A proxy.conf Handler N/A N/A BaseHTTPServer BaseHTTPRequestHandler N/A N/A 
  To avoid mocking out urllib, we setup a web server
  that does very little, and test proxying against it.
   do_GET N/A N/A self N/A N/A N/A N/A N/A self send_response 200 N/A N/A N/A self send_header Content-type text/html; charset=utf8 N/A N/A N/A self end_headers N/A N/A N/A N/A self wfile write Hello there. N/A N/A N/A N/A self wfile write N/A N/A You requested:  N/A self path . N/A N/A N/A N/A self wfile write Image: <img src='/foo.jpg'> N/A N/A N/A N/A self wfile write Link: <a href='/baz?with=parameter'>link</a> N/A do_POST N/A N/A self N/A N/A N/A N/A N/A self send_response 200 N/A N/A N/A self send_header Content-type text/html; charset=utf8 N/A N/A N/A self end_headers N/A N/A N/A N/A self wfile write Hello there. N/A N/A N/A N/A self wfile write N/A N/A You requested:  N/A self path . N/A N/A N/A N/A self wfile write N/A Data:  N/A N/A N/A self rfile read 16 N/A log_message N/A N/A self fmt N/A args N/A N/A N/A N/A logging debug N/A %s - - [%s] %s N/A N/A N/A self address_string N/A N/A self log_date_time_string N/A fmt args N/A N/A run_test_server N/A N/A N/A N/A N/A 
  Returns the server, and a method to close it out.
   N/A httpd N/A N/A BaseHTTPServer HTTPServer N/A 127.0.0.1 0 Handler N/A thread N/A N/A threading Thread target N/A httpd handle_request N/A N/A thread daemon True N/A N/A N/A thread start finish N/A N/A N/A N/A N/A N/A Closing thread  N/A str thread N/A N/A N/A thread join 10.0 N/A N/A assert_false N/A N/A thread isAlive N/A N/A N/A httpd finish N/A N/A N/A run_test_server __test__ False test_proxy_get N/A N/A N/A N/A N/A 
  Proxying test.
   N/A client N/A Client N/A N/A N/A client login username test password test N/A N/A httpd finish N/A run_test_server N/A N/A N/A finish_conf N/A N/A N/A N/A proxy conf WHITELIST set_for_testing 127\.0\.0\.1:\d* N/A N/A N/A response_get N/A N/A client get N/A /proxy/127.0.0.1/%s/ N/A httpd server_port N/A dict foo bar N/A N/A N/A finish_conf N/A N/A assert_true N/A Hello there N/A response_get content N/A N/A assert_true N/A You requested: /?foo=bar. N/A response_get content N/A N/A assert_true N/A N/A /proxy/127.0.0.1/%s/foo.jpg N/A httpd server_port N/A response_get content N/A N/A assert_true N/A N/A /proxy/127.0.0.1/%s/baz?with=parameter N/A httpd server_port N/A response_get content N/A N/A N/A finish N/A test_proxy_post N/A N/A N/A N/A N/A 
  Proxying test, using POST.
   N/A client N/A Client N/A N/A N/A client login username test password test N/A N/A httpd finish N/A run_test_server N/A N/A N/A finish_conf N/A N/A N/A N/A proxy conf WHITELIST set_for_testing 127\.0\.0\.1:\d* N/A N/A N/A response_post N/A N/A client post N/A /proxy/127.0.0.1/%s/ N/A httpd server_port N/A dict foo bar foo2 bar N/A N/A N/A finish_conf N/A N/A assert_true N/A Hello there N/A response_post content N/A N/A assert_true N/A You requested: /. N/A response_post content N/A N/A assert_true N/A foo=bar N/A response_post content N/A N/A assert_true N/A foo2=bar N/A response_post content N/A N/A N/A finish N/A test_blacklist N/A N/A N/A N/A N/A client N/A make_logged_in_client test N/A finish_confs N/A N/A N/A N/A N/A proxy conf WHITELIST set_for_testing localhost:\d* N/A N/A N/A N/A proxy conf BLACKLIST set_for_testing localhost:\d*/(foo|bar)/fred/ N/A N/A N/A resp N/A N/A client get /proxy/localhost/1234//foo//fred/ N/A N/A assert_true N/A is blocked N/A resp content N/A N/A httpd finish N/A run_test_server N/A N/A N/A resp N/A N/A client get N/A /proxy/localhost/%s//foo//fred_ok N/A N/A httpd server_port N/A N/A assert_true N/A Hello there N/A resp content N/A N/A N/A finish N/A N/A fin finish_confs N/A N/A N/A fin N/A UrlLibFileWrapper N/A N/A StringIO StringIO N/A N/A 
  urllib2.urlopen returns a file-like object; we fake it here.
   __init__ N/A N/A self buf url N/A N/A N/A N/A N/A N/A StringIO StringIO __init__ self buf N/A N/A self url url N/A geturl N/A N/A self N/A N/A N/A URL we were initialized with. N/A N/A self url N/A N/A test_rewriting N/A N/A N/A N/A N/A 
  Tests that simple re-writing is working.
   N/A html <a href='foo'>bar</a><a href='http://alpha.com'>baz</a> N/A N/A assert_true N/A <a href="/proxy/abc.com/80/sub/foo">bar</a> N/A _rewrite_links N/A UrlLibFileWrapper html http://abc.com/sub/ msg Relative links N/A N/A assert_true N/A <a href="/proxy/alpha.com/80/">baz</a> N/A _rewrite_links N/A UrlLibFileWrapper html http://abc.com/sub/ msg Absolute links N/A html <a href='http://alpha.com:1234/bar'>bar</a><a href='http://alpha.com:-1/baz'>baz</a> N/A N/A assert_true N/A <a href="/proxy/alpha.com/1234/bar">bar</a><a>baz</a> N/A _rewrite_links N/A UrlLibFileWrapper html http://abc.com/sub/ msg URL with invalid port N/A html 
  <img src="/static/hadoop-logo.jpg"/><br>
   N/A rewritten N/A _rewrite_links N/A UrlLibFileWrapper html http://abc.com/sub/ N/A N/A assert_true N/A <img src="/proxy/abc.com/80/static/hadoop-logo.jpg"> rewritten msg Rewrite images N/A