Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad Str ListLoad body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index BinOpMod Str NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad ListLoad body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index BinOpMod Str NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad keyword Call NameLoad keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call NameLoad keyword NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assert CompareIn Str AttributeLoad NameLoad attr Assert SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assert CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assert CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Str With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assert CompareIn Str AttributeLoad NameLoad attr Assert SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareNotIn Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword ListLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assert CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call NameLoad NameLoad Call NameLoad ListLoad Str Str Str Expr Call NameLoad Call NameLoad NameLoad Call NameLoad ListLoad Str Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword ListLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Str Assert CompareIn Str AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr ListLoad Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call NameLoad NameLoad Num Expr Call NameLoad Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call NameLoad NameLoad Num Expr Call NameLoad Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareNotIn Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str keyword NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareNotIn Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str keyword NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assert CompareNotIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Print NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list
N/A N/A 
    Simblin Test Views
    ~~~~~~~~~~~~~~~~~~

    Test the different views of the blogging application.

    :copyright: (c) 2010 by Eugen Kiss.
    :license: BSD, see LICENSE for more details.
 __future__ with_statement N/A datetime N/A flask simblin.extensions db simblin.models Post Tag Category post_tags post_categories Admin nose.tools assert_equal assert_true assert_false test TestCase ViewTestCase N/A TestCase N/A N/A Base TestClass for views register N/A N/A self username password password2 email N/A N/A N/A Helper function to register a user N/A N/A N/A N/A self client post /register data N/A dict username username password password password2 password2 email email follow_redirects True N/A login N/A N/A self username password N/A N/A N/A Helper function to login N/A N/A N/A N/A self client post /login data N/A dict username username password password follow_redirects True N/A register_and_login N/A N/A self username password N/A N/A N/A Register and login in one go N/A N/A N/A self register username password password N/A N/A N/A self login username password N/A logout N/A N/A self N/A N/A N/A Helper function to logout N/A N/A N/A N/A self client get /logout follow_redirects True N/A add_post N/A N/A self title markup comments_allowed visible tags categories N/A None None N/A N/A N/A Helper functions to create a blog post N/A data N/A dict title title markup markup tags tags action Publish N/A N/A comments_allowed None N/A N/A N/A data N/A comments_allowed True N/A N/A visible None N/A N/A N/A data N/A visible True N/A N/A i category_id N/A enumerate categories N/A N/A N/A data N/A N/A category-%d i category_id N/A N/A N/A N/A self client post /compose data data follow_redirects True N/A update_post N/A N/A self slug title markup comments_allowed visible tags categories N/A None None None N/A N/A N/A Helper functions to create a blog post N/A data N/A dict title title markup markup tags tags action Update N/A N/A comments_allowed None N/A N/A N/A data N/A comments_allowed True N/A N/A visible None N/A N/A N/A data N/A visible True N/A N/A i category_id N/A enumerate categories N/A N/A N/A data N/A N/A category-%d i category_id N/A N/A N/A N/A self client post N/A /update/%s slug data data follow_redirects True N/A delete_post N/A N/A self slug N/A N/A N/A Helper function to delete a blog post N/A N/A N/A N/A self client post N/A /_delete/%s slug data N/A dict next follow_redirects True N/A add_category N/A N/A self name N/A N/A N/A Register category in the database and return its id N/A N/A N/A N/A N/A flask json loads N/A N/A N/A N/A self client post /_add_category data N/A dict name name data N/A id N/A delete_category N/A N/A self id N/A N/A N/A N/A N/A N/A self client post /_delete_category data N/A dict id id N/A N/A TestRegistration N/A ViewTestCase N/A test_validation N/A N/A self N/A N/A N/A Test form validation N/A N/A N/A self clear_db N/A rv N/A N/A self register password N/A N/A You have to enter a username N/A rv data N/A rv N/A N/A self register britney spears N/A N/A You have to enter a password N/A rv data N/A rv N/A N/A self register barney abv abc N/A N/A Passwords must match N/A rv data N/A test_registration N/A N/A self N/A N/A N/A Test successful registration and automatic login N/A N/A N/A self clear_db N/A N/A self client N/A N/A rv N/A N/A self register barney abc abc N/A N/A You are the new master of this blog N/A rv data N/A N/A N/A flask session N/A logged_in N/A test_reregistration N/A N/A self N/A N/A N/A Test that only one admin can exist at a time and reregistration
        with new credentials only works when logged in N/A N/A N/A self clear_db N/A rv N/A N/A self register barney abc abc N/A N/A N/A self logout N/A rv N/A N/A self register barney abc abc N/A N/A There can only be one admin N/A rv data N/A N/A N/A self login barney abc N/A rv N/A N/A self register moe ugly ugly N/A rv N/A N/A self register moe ugly ugly N/A N/A You are the new master of this blog N/A rv data N/A N/A assert_equal N/A N/A N/A Admin query count 1 N/A N/A TestLogin N/A ViewTestCase N/A test_validation N/A N/A self N/A N/A N/A Test form validation N/A N/A N/A self clear_db N/A N/A N/A self register barney abc abc N/A rv N/A N/A self login borney abc N/A N/A Invalid username N/A rv data N/A rv N/A N/A self login barney abd N/A N/A Invalid password N/A rv data N/A test_login_logout N/A N/A self N/A N/A N/A Test logging in and out N/A N/A N/A self clear_db N/A N/A N/A self register barney abc abc N/A N/A self client N/A N/A rv N/A N/A self login barney abc N/A N/A You have been successfully logged in N/A rv data N/A N/A N/A flask session N/A logged_in N/A rv N/A N/A self logout N/A N/A You have been successfully logged out N/A rv data N/A N/A logged_in N/A flask session N/A N/A TestPost N/A ViewTestCase N/A N/A Tags and categories are tested alongside test_validation N/A N/A self N/A N/A N/A Check if form validation and validation in general works N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A rv N/A N/A self add_post title markup a tags b N/A N/A You must provide a title N/A rv data N/A rv N/A N/A self update_post title a markup tags slug 999x00 N/A N/A Invalid slug N/A rv data N/A rv N/A N/A self add_post title a markup tags N/A N/A New post was successfully posted N/A rv data N/A test_creation N/A N/A self N/A N/A N/A Test the blog post's fields' correctness after adding an 
        post and test proper category association N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A title My post N/A markup # Title N/A tags django, franz und bertha,vil/bil N/A category1_id N/A N/A self add_category cool N/A category2_id N/A N/A self add_category cooler N/A N/A N/A self add_post title title markup markup tags tags categories N/A category1_id category1_id category2_id N/A post N/A N/A N/A Post query get 1 N/A post_tagnames N/A N/A tag name N/A tag N/A post tags N/A category_names N/A N/A x name N/A x N/A post categories N/A N/A assert_equal N/A post id 1 N/A N/A assert_equal N/A post title title N/A N/A assert_equal N/A post markup markup N/A N/A assert_false N/A post comments_allowed N/A N/A assert_false N/A post visible N/A N/A assert_equal N/A post slug my-post N/A N/A <h1>Title</h1> N/A post html N/A N/A assert_equal N/A N/A N/A post datetime date N/A N/A N/A datetime date today N/A N/A assert_equal N/A sorted post_tagnames N/A sorted N/A django franz-und-bertha vil-bil N/A N/A assert_equal N/A sorted category_names N/A sorted N/A cool cooler N/A N/A assert_equal N/A N/A N/A Tag query count 3 N/A N/A assert_equal N/A N/A N/A Category query count 2 N/A N/A assert_equal N/A N/A N/A N/A N/A db session query post_tags count 3 N/A N/A assert_equal N/A N/A N/A N/A N/A db session query post_categories count 2 N/A N/A N/A self add_post title N/A post title tags N/A django comments_allowed True visible True N/A post2 N/A N/A N/A Post query get 2 N/A N/A assert_equal N/A post2 title N/A post title N/A N/A assert_true N/A post2 comments_allowed N/A N/A assert_true N/A post2 visible N/A N/A assert_equal N/A post2 slug N/A N/A post slug -2 N/A N/A assert_equal N/A post2 categories N/A N/A N/A assert_equal N/A N/A N/A Tag query count 3 N/A post N/A test_updating N/A N/A self N/A N/A N/A Test the blog post's fields' correctness after updating a post and
        test the proper creation and automatic tidying of tags and tag
        mappings and category associations N/A post N/A N/A self test_creation N/A datetime N/A post datetime N/A N/A N/A self update_post title cool markup ## Title slug N/A post slug tags N/A django comments_allowed True visible True N/A updated_post N/A N/A N/A Post query get 1 N/A N/A assert_equal N/A updated_post title cool N/A N/A assert_equal N/A updated_post markup ## Title N/A N/A assert_true N/A updated_post comments_allowed N/A N/A assert_true N/A updated_post visible N/A N/A assert_equal N/A updated_post slug cool N/A N/A <h2>Title</h2> N/A updated_post html N/A N/A assert_equal N/A updated_post datetime datetime N/A N/A assert_equal N/A N/A x name N/A x N/A updated_post tags N/A django N/A N/A assert_equal N/A N/A N/A Post query count 2 N/A N/A assert_equal N/A N/A N/A Tag query count 1 N/A N/A assert_equal N/A N/A N/A N/A N/A db session query post_tags count 2 N/A N/A assert_equal N/A N/A N/A N/A N/A db session query post_categories count 0 N/A test_deletion N/A N/A self N/A N/A N/A Test the deletion of a blog post and the accompanying deletion of
        tags N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A N/A N/A self add_post title Title markup tags cool N/A posts N/A N/A N/A Post query all N/A tags N/A N/A N/A Tag query all N/A N/A assert_equal N/A len posts 1 N/A N/A assert_equal N/A len tags 1 N/A rv N/A N/A self delete_post slug idontexist N/A N/A No such post N/A rv data N/A rv N/A N/A self delete_post slug title N/A N/A Post deleted N/A rv data N/A posts N/A N/A N/A Post query all N/A tags N/A N/A N/A Tag query all N/A N/A assert_equal N/A len posts 0 N/A N/A assert_equal N/A len tags 0 N/A test_singleview N/A N/A self N/A N/A N/A Test the displaying of one blog post N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A N/A N/A self add_post title Title markup visible True N/A rv N/A N/A N/A self client get /post/title N/A N/A N/A self assert_200 rv N/A N/A Title N/A rv data N/A N/A N/A self add_post title Title2 visible None N/A rv N/A N/A N/A self client get /post/title2 N/A N/A N/A self assert_200 rv N/A N/A Title2 N/A rv data N/A N/A N/A self logout N/A rv N/A N/A N/A self client get /post/title N/A N/A N/A self assert_200 rv N/A N/A Title N/A rv data N/A rv N/A N/A N/A self client get /post/title2 N/A N/A N/A self assert_404 rv N/A test_multipleview N/A N/A self N/A N/A N/A Test the displaying of multiple blog posts on home page N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A N/A N/A self add_post title Title markup visible True N/A N/A N/A self add_post title Title2 visible None N/A N/A N/A self logout N/A rv N/A N/A N/A self client get / N/A N/A N/A self assert_200 rv N/A N/A Title N/A rv data N/A N/A Title2 N/A rv data N/A N/A TestArchives N/A ViewTestCase N/A test_archives_page N/A N/A self N/A N/A N/A Test the displaying of the archives page N/A N/A N/A self clear_db N/A rv N/A N/A N/A self client get /archives/ N/A N/A N/A self assert_200 rv N/A test_month_view N/A N/A self N/A N/A N/A Test the displaying of the month view N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A post N/A Post the chronic 2001 visible False N/A N/A post datetime N/A N/A datetime datetime 1999 11 16 N/A N/A N/A N/A db session add post N/A N/A N/A N/A db session commit N/A rv N/A N/A N/A self client get /1999/11/ N/A N/A N/A self assert_200 rv N/A N/A the chronic 2001 N/A rv data N/A rv N/A N/A N/A self client get /7777/12/ N/A N/A No entries here so far N/A rv data N/A rv N/A N/A N/A self client get /1999/14/ N/A N/A N/A self assert_404 rv N/A N/A N/A self logout N/A rv N/A N/A N/A self client get /1999/11/ N/A N/A N/A self assert_200 rv N/A N/A No entries here so far N/A rv data N/A N/A TestTag N/A ViewTestCase N/A test_view N/A N/A self N/A N/A N/A Test the displaying of the tag view N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A tag N/A Tag drdre N/A N/A N/A N/A db session add tag N/A N/A N/A N/A db session commit N/A post N/A Post the chronic 2001 visible True N/A post2 N/A Post the chronic 2002 visible False N/A N/A post _tags N/A tag N/A N/A post2 _tags N/A tag N/A N/A N/A N/A db session add post N/A N/A N/A N/A db session add post2 N/A N/A N/A N/A db session commit N/A rv N/A N/A N/A self client get /tag/drdre/ N/A N/A N/A self assert_200 rv N/A N/A the chronic 2001 N/A rv data N/A rv N/A N/A N/A self client get /tag/bobbybrown/ N/A N/A N/A self assert_404 rv N/A N/A N/A self logout N/A rv N/A N/A N/A self client get /tag/drdre/ N/A N/A N/A self assert_200 rv N/A N/A the chronic 2001 N/A rv data N/A N/A the chronic 2002 N/A rv data N/A N/A TestCategory N/A ViewTestCase N/A test_view N/A N/A self N/A N/A N/A Test the displaying of the category view N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A category N/A Category drdre N/A N/A N/A N/A db session add category N/A N/A N/A N/A db session commit N/A post N/A Post the chronic visible True N/A post2 N/A Post the chrinoc visible False N/A N/A post _categories N/A category N/A N/A post2 _categories N/A category N/A N/A N/A N/A db session add post N/A N/A N/A N/A db session add post2 N/A N/A N/A N/A db session commit N/A rv N/A N/A N/A self client get /category/drdre/ N/A N/A N/A self assert_200 rv N/A N/A the chronic N/A rv data N/A rv N/A N/A N/A self client get /category/sugeknight/ N/A N/A N/A self assert_404 rv N/A N/A N/A self logout N/A rv N/A N/A N/A self client get /category/drdre/ N/A N/A N/A self assert_200 rv N/A N/A the chronic N/A rv data N/A N/A the chrinoc N/A rv data N/A rv N/A N/A N/A self client get /uncategorized/ N/A N/A N/A self assert_200 rv N/A N/A Uncategorized posts N/A rv data N/A post2 N/A Post dancing in the moonlight N/A N/A N/A N/A db session add post2 N/A N/A N/A N/A db session commit N/A rv N/A N/A N/A self client get /uncategorized/ N/A N/A N/A self assert_200 rv N/A N/A dancing in the moonlight N/A rv data N/A test_deletion_view N/A N/A self N/A N/A N/A Test if deletion works properly N/A N/A N/A self clear_db N/A N/A N/A self register_and_login barney abc N/A category N/A Category drdre N/A N/A N/A N/A db session add category N/A N/A N/A N/A db session commit N/A N/A assert_equal N/A N/A N/A Category query count 1 N/A rv N/A N/A self delete_category 1 N/A rv N/A N/A assert_equal N/A N/A N/A Category query count 0 N/A N/A