Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ImportFrom alias alias Assign SubscriptStore NameLoad Index Str Call NameLoad keyword Str keyword ListLoad Num Num keyword NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad keyword Str keyword ListLoad Num Num Num Num Num keyword NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Num decorator_list decorator_list
N/A N/A 
django-critic: tests
 django.test TestCase django.db models django.contrib.auth.models User critic.models RatingData TestSample N/A N/A models Model N/A N/A name N/A N/A models TextField N/A something N/A N/A models IntegerField default 1 __unicode__ N/A N/A self N/A N/A N/A N/A self name N/A N/A TestProduct N/A N/A models Model N/A N/A name N/A N/A models CharField max_length 20 N/A desc N/A N/A models TextField __unicode__ N/A N/A self N/A N/A N/A N/A self name N/A N/A critic.modules METHODS Method N/A N/A METHODS N/A critic.testsample N/A Method name Up/Down options N/A 1 2 change True N/A N/A METHODS N/A critic.testproduct N/A Method name 5 Star options N/A 1 2 3 4 5 change False CriticTestCase N/A TestCase N/A N/A 
    The main tests for django-critic.
     N/A fixtures N/A test_data.json setUp N/A N/A self N/A N/A N/A 
        Set up some initial data.
         N/A N/A self sample N/A N/A N/A TestSample objects create name Testing N/A N/A self product N/A N/A N/A TestProduct objects create name My Product N/A N/A self bob N/A N/A N/A User objects get pk 1 N/A N/A self jim N/A N/A N/A User objects get pk 2 N/A N/A self jane N/A N/A N/A User objects get pk 3 N/A test_add_rating N/A N/A self N/A N/A N/A 
        This test will ensure adding a rating works.
         N/A N/A N/A self assertTrue N/A N/A N/A RatingData objects add N/A self sample N/A self bob 1 N/A N/A N/A self assertTrue N/A N/A N/A RatingData objects add N/A self sample N/A self bob 2 N/A N/A N/A self assertFalse N/A N/A N/A RatingData objects add N/A self sample N/A self bob 3 N/A N/A N/A self assertFalse N/A N/A N/A RatingData objects add N/A self sample None 1 N/A test_change_rating N/A N/A self N/A N/A N/A 
        This test will ensure changing a rating works.
         N/A N/A N/A N/A RatingData objects add N/A self sample N/A self bob 0 N/A N/A N/A self assertTrue N/A N/A N/A RatingData objects add N/A self sample N/A self bob 1 N/A N/A N/A self assertTrue N/A N/A N/A RatingData objects add N/A self product N/A self bob 1 N/A N/A N/A self assertFalse N/A N/A N/A RatingData objects add N/A self product N/A self bob 2 N/A test_user_rating N/A N/A self N/A N/A N/A 
        This will test retrieving the user rating
         N/A N/A N/A N/A RatingData objects add N/A self sample N/A self bob 1 N/A N/A N/A self assertEqual N/A N/A N/A RatingData objects user_rating N/A self sample N/A self bob 1 N/A N/A N/A self assertNotEqual N/A N/A N/A RatingData objects user_rating N/A self sample N/A self bob 0 N/A test_average N/A N/A self N/A N/A N/A 
        This will test the rating average
         N/A N/A N/A N/A RatingData objects add N/A self product N/A self bob 3 N/A N/A N/A N/A RatingData objects add N/A self product N/A self jim 2 N/A N/A N/A N/A RatingData objects add N/A self product N/A self jane 1 N/A N/A N/A self assertEqual N/A N/A N/A RatingData objects average N/A self product 2 N/A test_total N/A N/A self N/A N/A N/A 
        This will test the rating total
         N/A N/A N/A N/A RatingData objects add N/A self product N/A self bob 3 N/A N/A N/A N/A RatingData objects add N/A self product N/A self jim 2 N/A N/A N/A N/A RatingData objects add N/A self product N/A self jane 1 N/A N/A N/A self assertEqual N/A N/A N/A RatingData objects total N/A self product 3 N/A N/A N/A self assertEqual N/A N/A N/A RatingData objects total N/A self product 3 1 N/A N/A N/A self assertEqual N/A N/A N/A RatingData objects total N/A self product 2 1 N/A N/A N/A self assertEqual N/A N/A N/A RatingData objects total N/A self product 1 1 N/A N/A