Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Yield orelse Expr Yield decorator_list NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Num ListLoad Num ListLoad Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Num TupleLoad Num Num TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad Num Call NameLoad ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Num Call NameLoad ListLoad Num Num TupleLoad Num TupleLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Num Call NameLoad Call NameLoad Num Num GeneratorExp NameLoad comprehension NameStore TupleLoad Num Call NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str ListLoad Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad ListLoad Str Str Str Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict With Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareNotIn Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Num With Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict keyword ListLoad With Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareNotIn Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict keyword ListLoad NameLoad With Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list decorator_list
N/A N/A Tests for utility functions. __future__ unicode_literals contextlib contextmanager django.test TestCase django.template RequestContext Template django.test.client RequestFactory test_views BaseViewTestCase scribbler.utils _flatten get_variables context_context_manager N/A N/A context N/A N/A N/A N/A hasattr context bind_template N/A N/A template N/A Template N/A N/A N/A context bind_template template N/A N/A N/A N/A N/A N/A N/A contextmanager FlattenTestCase N/A TestCase N/A N/A TestCase for _flatten test_flattens_inner_list N/A N/A self N/A N/A N/A Assure arbitrarily nested lists are flattened N/A nested_list N/A 1 N/A 2 N/A 3 4 N/A 5 6 7 8 N/A N/A N/A self assertEqual N/A list N/A _flatten nested_list N/A list N/A range 1 9 N/A test_flattens_tuples N/A N/A self N/A N/A N/A Assure nested tuples are also flattened N/A nested_tuples N/A 1 N/A 2 3 N/A 4 5 6 N/A N/A N/A self assertEqual N/A list N/A _flatten nested_tuples N/A list N/A range 1 7 N/A test_flattens_sets N/A N/A self N/A N/A N/A Assure nested sets are flattened N/A nested_sets N/A set N/A 1 N/A frozenset N/A 2 3 4 N/A N/A N/A self assertEqual N/A list N/A _flatten nested_sets N/A list N/A range 1 5 N/A test_flatten_nested_combinations N/A N/A self N/A N/A N/A Assure nested iterables are flattened N/A nested N/A 1 N/A frozenset N/A 2 3 N/A 4 N/A 5 6 N/A 7 8 N/A N/A N/A self assertEqual N/A list N/A _flatten nested N/A list N/A range 1 9 N/A test_flatten_generator N/A N/A self N/A N/A N/A Assure generators are flattened N/A gens N/A 1 N/A list N/A range 2 4 N/A num N/A num N/A 4 N/A list N/A range 5 7 N/A N/A N/A self assertEqual N/A list N/A _flatten gens N/A list N/A range 1 7 N/A test_flatten_string_unchanged N/A N/A self N/A N/A N/A Assure strings are left intact N/A data N/A abc N/A abc N/A abc abc N/A N/A N/A self assertEqual N/A list N/A _flatten data N/A abc abc abc abc N/A N/A test_processor N/A N/A request N/A N/A N/A N/A custom_processor_var 1 N/A GetVariablesTestCase N/A BaseViewTestCase N/A N/A TestCase for get_variables setUp N/A N/A self N/A N/A N/A factory N/A RequestFactory N/A N/A self request N/A N/A factory get /foo/ N/A N/A self known_globals N/A csrf_token request user N/A _get_context N/A N/A self dict_ processors N/A None None N/A N/A N/A RequestContext N/A self request dict_ processors processors N/A test_global_context_processors N/A N/A self N/A N/A N/A 
        Assure get_variables contains known global context processors such as
        request and user
         N/A context N/A N/A self _get_context N/A N/A context_context_manager context N/A N/A variables N/A set N/A get_variables context N/A N/A N/A self assertTrue N/A N/A variables issuperset N/A set N/A self known_globals N/A test_returned_variable N/A N/A self N/A N/A N/A Assure get_variables returns variables unique to the context. N/A context N/A N/A self _get_context N/A N/A N/A context_context_manager context N/A N/A variables N/A get_variables context N/A N/A N/A self assertTrue N/A a variables N/A context N/A N/A self _get_context N/A a 3 N/A N/A context_context_manager context N/A N/A variables N/A get_variables context N/A N/A N/A self assertTrue N/A a variables N/A test_custom_processors N/A N/A self N/A N/A N/A context N/A N/A self _get_context N/A processors N/A N/A N/A context_context_manager context N/A N/A variables N/A get_variables context N/A N/A N/A self assertTrue N/A custom_processor_var variables N/A context N/A N/A self _get_context N/A processors N/A test_processor N/A N/A context_context_manager context N/A N/A variables N/A get_variables context N/A N/A N/A self assertTrue N/A custom_processor_var variables N/A N/A