Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad Call NameLoad ListLoad Str Str Str Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Slice Num SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Slice Num SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str NameStore body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str NameStore body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore BinOpMod Str NameLoad With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Str With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A os N/A shutil cactus.tests SiteTestCase cactus.utils.filesystem fileList cactus.utils.url path_to_url TestSite N/A SiteTestCase N/A testBuild N/A N/A self N/A N/A N/A 
        Test that we build the proper files.
         N/A N/A N/A N/A self site build N/A N/A N/A self assertEqual N/A N/A N/A os path exists N/A N/A N/A os path join N/A self path build False N/A N/A N/A self assertEqual N/A sorted N/A N/A path_to_url path N/A path N/A fileList N/A N/A N/A os path join N/A self path .build relative True N/A sorted N/A error.html index.html robots.txt sitemap.xml N/A N/A N/A N/A self site get_url_for_static /static/css/style.css N/A 1 N/A N/A N/A N/A self site get_url_for_static /static/images/favicon.ico N/A 1 N/A N/A N/A N/A self site get_url_for_static /static/js/main.js N/A 1 N/A testRenderPage N/A N/A self N/A N/A N/A 
        Test that pages get rendered.
         N/A N/A N/A shutil copy N/A N/A N/A os path join cactus tests data test-in.html N/A N/A N/A os path join N/A self path pages test.html N/A N/A N/A N/A self site build N/A N/A open N/A N/A N/A os path join cactus tests data test-out.html rU expected N/A N/A N/A open N/A N/A N/A os path join N/A self path .build test.html rU obtained N/A N/A N/A N/A self assertEqual N/A N/A expected read N/A N/A obtained read N/A testPageContext N/A N/A self N/A N/A N/A 
        Test that page context is parsed and uses in the pages.
         N/A N/A N/A shutil copy N/A N/A N/A os path join cactus tests data koenpage-in.html N/A N/A N/A os path join N/A self path pages koenpage.html N/A N/A N/A N/A self site build N/A N/A open N/A N/A N/A os path join cactus tests data koenpage-out.html rU expected N/A N/A N/A open N/A N/A N/A os path join N/A self path .build koenpage.html rU obtained N/A N/A N/A N/A self assertEqual N/A N/A expected read N/A N/A obtained read N/A test_html_only_context N/A N/A self N/A N/A N/A 
        Test that we only parse context on HTML pages.
         N/A robots_txt Disallow:/page1
Disallow:/page2 N/A N/A open N/A N/A N/A os path join N/A N/A self site path pages robots.txt w f N/A N/A N/A N/A f write robots_txt N/A N/A N/A N/A self site build N/A N/A open N/A N/A N/A os path join N/A N/A self site build_path robots.txt rU f N/A N/A N/A N/A self assertEquals robots_txt N/A N/A f read N/A testStaticLoader N/A N/A self N/A N/A N/A 
        Test that the static URL builde and template tag work.
         N/A static /static/css/style.css N/A page N/A {%% static '%s' %%} static N/A N/A open N/A N/A N/A os path join N/A self path pages staticpage.html w dst N/A N/A N/A N/A dst write page N/A N/A N/A N/A self site build N/A N/A open N/A N/A N/A os path join N/A self path .build staticpage.html rU obtained N/A N/A N/A N/A self assertEqual N/A N/A N/A self site get_url_for_static static N/A N/A obtained read N/A test_current_page N/A N/A self N/A N/A N/A 
        Test that the if_current_page tag works.
         N/A page page1.html N/A content N/A {%% if_current_page '/%s' %%} page N/A other page2.html N/A N/A open N/A N/A N/A os path join N/A self path pages page w f N/A N/A N/A N/A f write content N/A N/A open N/A N/A N/A os path join N/A self path pages other w f N/A N/A N/A N/A f write content N/A N/A N/A N/A self site build N/A N/A open N/A N/A N/A os path join N/A self path .build page rU f N/A N/A N/A N/A self assertEqual True N/A N/A f read N/A N/A open N/A N/A N/A os path join N/A self path .build other rU f N/A N/A N/A N/A self assertEqual False N/A N/A f read N/A N/A