Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore NameLoad body Assert CompareIn AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call NameLoad keyword GeneratorExp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareNotEq NameLoad Str
N/A N/A os django.conf settings django.test TestCase override_settings categories.models Category categories.management.commands.import_categories Command django.core.management.base CommandError CategoryImportTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A _import_file N/A N/A self filename N/A N/A N/A root_cats N/A Category 1 Category 2 Category 3 N/A testfile N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path dirname __file__ fixtures filename N/A cmd N/A Command N/A N/A N/A cmd execute testfile N/A roots N/A N/A N/A Category tree root_nodes N/A N/A N/A self assertEqual N/A len roots 3 N/A item roots N/A N/A N/A N/A item name root_cats N/A cat2 N/A N/A N/A Category objects get name Category 2 N/A cat21 N/A N/A N/A N/A cat2 children all N/A 0 N/A N/A N/A self assertEqual N/A cat21 name Category 2-1 N/A cat211 N/A N/A N/A N/A cat21 children all N/A 0 N/A N/A N/A self assertEqual N/A cat211 name Category 2-1-1 N/A testImportSpaceDelimited N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A Category objects all delete N/A N/A N/A self _import_file test_category_spaces.txt N/A items N/A N/A N/A Category objects all N/A N/A N/A self assertEqual N/A N/A items N/A 0 name Category 1 N/A N/A N/A self assertEqual N/A N/A items N/A 1 name Category 1-1 N/A N/A N/A self assertEqual N/A N/A items N/A 2 name Category 1-2 N/A testImportTabDelimited N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A Category objects all delete N/A N/A N/A self _import_file test_category_tabs.txt N/A items N/A N/A N/A Category objects all N/A N/A N/A self assertEqual N/A N/A items N/A 0 name Category 1 N/A N/A N/A self assertEqual N/A N/A items N/A 1 name Category 1-1 N/A N/A N/A self assertEqual N/A N/A items N/A 2 name Category 1-2 N/A testMixingTabsSpaces N/A N/A self N/A N/A N/A 
        Should raise an exception.
         N/A string1 N/A cat1     cat1-1 	cat1-2-FAIL! N/A string2 N/A cat1 	cat1-1     cat1-2-FAIL! N/A cmd N/A Command N/A N/A N/A self assertRaises CommandError N/A cmd parse_lines string1 N/A N/A N/A self assertRaises CommandError N/A cmd parse_lines string2 N/A N/A N/A override_settings INSTALLED_APPS N/A app N/A app N/A settings INSTALLED_APPS N/A app django.contrib.flatpages