Module Expr Str Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Return NameLoad decorator_list decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr ListLoad Num Num Num keyword Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr ListLoad Num Num Num keyword Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num decorator_list decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr
N/A N/A 
Unit test for composite parameters.

Originally implemented as doctests in Topographica in the file
testCompositeParameter.txt
 N/A unittest N/A param TestCompositeParameters N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A A N/A N/A param Parameterized N/A N/A x N/A N/A param Number default 0 N/A y N/A N/A param Number default 0 N/A xy N/A N/A param Composite attribs N/A x y N/A N/A N/A self A A N/A N/A self a N/A N/A self A SomeSequence N/A object N/A N/A Can't use iter with Dynamic (doesn't pickle, doesn't copy) __init__ N/A N/A self sequence N/A N/A N/A N/A self sequence sequence N/A N/A self index 0 N/A __call__ N/A N/A self N/A N/A N/A val N/A N/A self sequence N/A N/A self index N/A N/A self index 1 N/A val N/A N/A N/A N/A self SomeSequence SomeSequence N/A test_initialization N/A N/A self N/A N/A N/A Make an instance and do default checks N/A N/A N/A self assertEqual N/A N/A self a x 0 N/A N/A N/A self assertEqual N/A N/A self a y 0 N/A N/A N/A self assertEqual N/A N/A self a xy N/A 0 0 N/A test_set_component N/A N/A self N/A N/A N/A N/A N/A self a x 1 N/A N/A N/A self assertEqual N/A N/A self a xy N/A 1 0 N/A test_set_compound N/A N/A self N/A N/A N/A N/A N/A self a xy N/A 2 3 N/A N/A N/A self assertEqual N/A N/A self a x 2 N/A N/A N/A self assertEqual N/A N/A self a y 3 N/A test_compound_class N/A N/A self N/A N/A N/A  Get the compound on the class  N/A N/A N/A self assertEqual N/A N/A self A xy N/A 0 0 N/A test_set_compound_class_set N/A N/A self N/A N/A N/A N/A N/A self A xy N/A 5 6 N/A N/A N/A self assertEqual N/A N/A self A x 5 N/A N/A N/A self assertEqual N/A N/A self A y 6 N/A test_set_compound_class_instance N/A N/A self N/A N/A N/A N/A N/A self A xy N/A 5 6 N/A b N/A N/A self A N/A N/A N/A self assertEqual N/A b x 5 N/A N/A N/A self assertEqual N/A b y 6 N/A test_set_compound_class_instance_unchanged N/A N/A self N/A N/A N/A N/A N/A self a xy N/A 2 3 N/A N/A N/A self A xy N/A 5 6 N/A N/A N/A self assertEqual N/A N/A self a x 2 N/A N/A N/A self assertEqual N/A N/A self a y 3 N/A test_composite_dynamic N/A N/A self N/A N/A N/A 
        Check CompositeParameter is ok with Dynamic
        CB: this test is really of Parameterized.
         N/A a2 N/A N/A self A x N/A N/A self SomeSequence N/A 1 2 3 y N/A N/A self SomeSequence N/A 4 5 6 N/A N/A N/A a2 x N/A a2 y N/A N/A N/A self assertEqual N/A N/A a2 inspect_value xy N/A 1 4 N/A test_composite_dynamic_generator N/A N/A self N/A N/A N/A a2 N/A N/A self A x N/A N/A self SomeSequence N/A 1 2 3 y N/A N/A self SomeSequence N/A 4 5 6 N/A N/A N/A a2 x N/A a2 y N/A N/A ix iy N/A N/A a2 get_value_generator xy N/A N/A N/A self assertEqual N/A ix 2 N/A N/A N/A self assertEqual N/A iy 5 N/A N/A N/A N/A __name__ __main__ N/A N/A nose N/A N/A N/A nose runmodule