Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr 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 Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr 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 AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A datetime timedelta mptt.models TreeForeignKey django.db IntegrityError django.test TestCase django.db models django.core.exceptions ValidationError django.contrib.sites.models Site django.contrib.auth get_user_model django.utils timezone django.utils.translation ugettext_lazy _ opps.channels.models Channel ChannelFields N/A TestCase N/A test_name N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name name N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models CharField N/A N/A N/A self assertEqual N/A field max_length 60 N/A test_long_slug N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name long_slug N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models SlugField N/A N/A N/A self assertEqual N/A field max_length 250 N/A N/A N/A self assertTrue N/A field db_index N/A test_layout N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name layout N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models CharField N/A N/A N/A self assertEqual N/A field max_length 250 N/A N/A N/A self assertTrue N/A field db_index N/A N/A N/A self assertEqual N/A field default default N/A test_description N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name description N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models CharField N/A N/A N/A self assertEqual N/A field max_length 255 N/A N/A N/A self assertTrue N/A field null N/A N/A N/A self assertTrue N/A field blank N/A test_show_in_menu N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name show_in_menu N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models BooleanField N/A N/A N/A self assertFalse N/A field default N/A test_include_in_main_rss N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name include_in_main_rss N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models BooleanField N/A N/A N/A self assertTrue N/A field default N/A test_homepage N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name homepage N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models BooleanField N/A N/A N/A self assertFalse N/A field default N/A N/A N/A self assertEqual N/A field help_text Check only if this channel is the homepage. Should have only one homepage per site N/A test_group N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name group N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models BooleanField N/A N/A N/A self assertFalse N/A field default N/A test_order N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name order N/A 0 N/A N/A N/A self assertEqual N/A field __class__ N/A models IntegerField N/A N/A N/A self assertEqual N/A field default 0 N/A test_parent N/A N/A self N/A N/A N/A field N/A N/A N/A N/A Channel _meta get_field_by_name parent N/A 0 N/A N/A N/A self assertEqual N/A field __class__ TreeForeignKey N/A N/A N/A self assertTrue N/A field null N/A N/A N/A self assertTrue N/A field blank N/A N/A ChannelModelTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A User N/A get_user_model N/A N/A self user N/A N/A N/A User objects create username test password test N/A N/A self site N/A N/A N/A N/A N/A Site objects filter name example.com get N/A N/A self parent N/A N/A N/A Channel objects create name Home slug home description home page site N/A self site user N/A self user N/A test_check_create_home N/A N/A self N/A N/A N/A 
        Check exist channel home, create on setup class
         N/A home N/A N/A N/A N/A N/A Channel objects filter slug home get N/A N/A N/A self assertTrue home N/A N/A N/A self assertEqual home N/A self parent N/A test_not_is_published N/A N/A self N/A N/A N/A 
        is_published false on home channel
         N/A home N/A N/A N/A N/A N/A Channel objects filter slug home get N/A N/A N/A self assertFalse N/A N/A home is_published N/A N/A N/A self assertEqual N/A N/A home is_published N/A home published N/A test_is_published N/A N/A self N/A N/A N/A 
        is_published true on home channel
         N/A N/A N/A self parent published True N/A N/A N/A self parent date_available N/A N/A N/A timezone now N/A timedelta hours 1 N/A N/A N/A N/A self parent save N/A home N/A N/A N/A N/A N/A Channel objects filter slug home get N/A N/A N/A self assertTrue N/A N/A home is_published N/A N/A N/A self assertEqual N/A N/A home is_published N/A home published N/A test_create_sub_channel_home N/A N/A self N/A N/A N/A channel N/A N/A N/A Channel objects create name Sub Home slug sub-home description sub home page site N/A self site parent N/A self parent user N/A self user N/A N/A N/A self assertTrue channel N/A N/A N/A self assertEqual N/A channel parent N/A self parent N/A test_not_is_published_sub_channel N/A N/A self N/A N/A N/A 
        is_published false on home sub channel
         N/A subchannel N/A N/A N/A Channel objects create name Sub Home slug sub-home description sub home page site N/A self site user N/A self user parent N/A self parent N/A subhome N/A N/A N/A N/A N/A Channel objects filter slug sub-home get N/A N/A N/A self assertFalse N/A N/A subhome is_published N/A N/A N/A self assertEqual N/A N/A subhome is_published N/A subhome published N/A N/A N/A self assertEqual N/A N/A subhome is_published N/A N/A subchannel is_published N/A test_is_published_sub_channel N/A N/A self N/A N/A N/A 
        is_published true on home sub channel
         N/A subchannel N/A N/A N/A Channel objects create name Sub Home slug sub-home description sub home page site N/A self site user N/A self user parent N/A self parent N/A N/A subchannel published True N/A N/A subchannel date_available N/A N/A N/A timezone now N/A timedelta hours 1 N/A N/A N/A subchannel save N/A subhome N/A N/A N/A N/A N/A Channel objects filter slug sub-home get N/A N/A N/A self assertTrue N/A N/A subhome is_published N/A N/A N/A self assertEqual N/A N/A subhome is_published N/A subhome published N/A N/A N/A self assertEqual N/A N/A subhome is_published N/A N/A subhome is_published N/A test_duplicate_channel_name N/A N/A self N/A N/A N/A 
        create 2 channel with same name
         N/A N/A N/A N/A Channel objects create name Sub Home slug sub-home description sub home page site N/A self site parent N/A self parent user N/A self user N/A N/A N/A self assertRaises IntegrityError N/A N/A Channel objects create name Sub Home slug sub-home description sub home page site N/A self site parent N/A self parent N/A test_channel_is_homepage N/A N/A self N/A N/A N/A 
        check channel is home page
         N/A N/A N/A self parent homepage True N/A N/A N/A self parent published True N/A N/A N/A N/A self parent save N/A channel N/A N/A N/A Channel objects get_homepage site N/A N/A self parent site N/A N/A N/A self assertTrue channel N/A N/A N/A self assertEqual N/A channel slug N/A N/A self parent slug N/A test_not_set_homepage N/A N/A self N/A N/A N/A 
        not set channel home page, return none
         N/A channel N/A N/A N/A Channel objects get_homepage site N/A N/A self parent site N/A N/A N/A self assertEqual None channel N/A N/A N/A self assertFalse channel N/A test_get_thumb N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A N/A self parent get_thumb N/A test_search_category N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A _ Channel N/A N/A Channel search_category N/A test_title N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self parent title N/A N/A self parent name N/A test_root N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A self parent N/A N/A self parent root N/A subchannel N/A N/A N/A Channel objects create name Sub Home slug sub-home description sub home page site N/A self site user N/A self user parent N/A self parent N/A N/A N/A self assertEqual N/A self parent N/A subchannel root N/A test_clean_slug_exist_in_domain N/A N/A self N/A N/A N/A invalid N/A Channel name Home slug home description home page site N/A self site user N/A self user N/A N/A N/A self assertRaises ValidationError N/A invalid full_clean N/A test_clean_slug_exist_homepage N/A N/A self N/A N/A N/A N/A N/A N/A Channel objects create name homepage slug homepage homepage True site N/A self site user N/A self user published True N/A invalid N/A N/A N/A Channel objects create name invalid slug invalid homepage True site N/A self site user N/A self user N/A N/A N/A self assertRaises ValidationError N/A invalid full_clean N/A test_clean N/A N/A self N/A N/A N/A valid N/A N/A N/A Channel objects create name homepage slug homepage homepage True site N/A self site user N/A self user published True N/A N/A N/A valid full_clean N/A test_long_slug N/A N/A self N/A N/A N/A channel1 N/A N/A N/A Channel objects create name Channel 1 slug channel1 parent N/A self parent description channel 1 site N/A self site user N/A self user N/A channel2 N/A N/A N/A Channel objects create name Channel 2 slug channel2 parent channel1 description channel 2 site N/A self site user N/A self user N/A N/A N/A self assertEqual N/A N/A self parent long_slug home N/A N/A N/A self assertEqual N/A channel1 long_slug home/channel1 N/A N/A N/A self assertEqual N/A channel2 long_slug home/channel1/channel2 N/A test_unicode N/A N/A self N/A N/A N/A channel1 N/A N/A N/A Channel objects create name Channel 1 slug channel1 parent N/A self parent description channel 1 site N/A self site user N/A self user N/A channel2 N/A N/A N/A Channel objects create name Channel 2 slug channel2 parent channel1 description channel 2 site N/A self site user N/A self user N/A N/A N/A self assertEqual N/A N/A N/A self parent __unicode__ /home/ N/A N/A N/A self assertEqual N/A N/A channel1 __unicode__ /home/channel1/ N/A N/A N/A self assertEqual N/A N/A channel2 __unicode__ /home/channel1/channel2/ N/A test_get_absolute_url N/A N/A self N/A N/A N/A N/A N/A self test_unicode N/A N/A