Module Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad Str Str Assign AttributeStore NameLoad attr Lambda arguments args NameParam NameParam defaults Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad NameLoad keyword Dict Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list decorator_list FunctionDef arguments args defaults vararg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr NameLoad Return decorator_list If CompareEq NameLoad Str body Expr Call NameLoad NameLoad
N/A N/A unittest gluon * s3.s3filter * S3FilterWidgetTests N/A N/A unittest TestCase N/A N/A  Tests for S3FilterWidget base class helper methods  testInit N/A N/A self N/A N/A N/A  Test filter widget constructor  N/A widget N/A S3FilterWidget N/A name organisation_id$name option test option _class test-class N/A N/A N/A self assertTrue N/A option N/A widget opts N/A N/A N/A self assertTrue N/A len N/A widget opts 1 N/A N/A N/A self assertTrue N/A N/A N/A widget opts N/A option test option N/A N/A N/A self assertTrue N/A _class N/A widget attr N/A N/A N/A self assertTrue N/A len N/A widget attr 1 N/A N/A N/A self assertTrue N/A N/A N/A widget attr N/A _class test-class N/A testRender N/A N/A self N/A N/A N/A  Test rendering of the hidden data element  N/A widget N/A S3FilterWidget N/A name organisation_id$name N/A N/A widget widget N/A N/A N/A resource values N/A N/A resource N/A N/A N/A current s3db resource org_office N/A output N/A widget resource get_vars N/A N/A N/A N/A self assertTrue N/A isinstance N/A output N/A 0 INPUT N/A attr N/A N/A output N/A 0 attributes N/A t N/A attr N/A _type N/A N/A N/A self assertEqual t hidden N/A c N/A attr N/A _class N/A N/A N/A self assertTrue N/A filter-widget-data c N/A N/A N/A self assertTrue N/A N/A %s-data N/A widget _class c N/A i N/A attr N/A _id N/A N/A N/A self assertEqual i N/A %s-org_office_name-org_organisation_name-%s-data N/A N/A resource alias N/A widget _class N/A v N/A attr N/A _value N/A N/A N/A self assertEqual v ~.name|~.organisation_id$name N/A testSelector N/A N/A self N/A N/A N/A  Test construction of the URL query selector for a filter widget  N/A fields name N/A s3db N/A current s3db N/A widget N/A S3FilterWidget N/A resource N/A N/A s3db resource org_organisation N/A N/A label selector N/A N/A widget _selector resource fields N/A N/A N/A self assertEqual selector ~.name N/A N/A widget alias organisation N/A N/A label selector N/A N/A widget _selector resource fields N/A N/A N/A self assertEqual selector organisation.name N/A N/A widget alias None N/A fields nonexistent_component.name N/A resource N/A N/A s3db resource org_organisation N/A N/A label selector N/A N/A widget _selector resource fields N/A N/A N/A self assertEqual selector None N/A fields N/A name organisation_id$name N/A resource N/A N/A s3db resource org_office N/A N/A label selector N/A N/A widget _selector resource fields N/A N/A N/A self assertEqual selector ~.name|~.organisation_id$name N/A fields N/A N/A resource N/A N/A s3db resource org_organisation N/A N/A label selector N/A N/A widget _selector resource fields N/A N/A N/A self assertEqual selector None N/A testVariable N/A N/A self N/A N/A N/A  Test construction of the URL variable for filter widgets  N/A variable N/A N/A S3FilterWidget _variable organisation.name like N/A N/A N/A self assertEqual variable organisation.name__like N/A variable N/A N/A S3FilterWidget _variable organisation.name None N/A N/A N/A self assertEqual variable organisation.name N/A variable N/A N/A S3FilterWidget _variable organisation.name N/A N/A N/A self assertEqual variable organisation.name N/A variable N/A N/A S3FilterWidget _variable organisation.name N/A ge le N/A N/A N/A self assertEqual variable N/A organisation.name__ge organisation.name__le N/A testValues N/A N/A self N/A N/A N/A  Test extraction of filter widget values from GET vars  N/A get_vars N/A test_1 test_2 1 N/A 1,2 3 N/A values N/A N/A S3FilterWidget _values get_vars test_1 N/A N/A N/A self assertEqual N/A len values 1 N/A N/A N/A self assertTrue N/A 1 values N/A values N/A N/A S3FilterWidget _values get_vars test_2 N/A N/A N/A self assertEqual N/A len values 3 N/A N/A N/A self assertTrue N/A 1 values N/A N/A N/A self assertTrue N/A 2 values N/A N/A N/A self assertTrue N/A 3 values N/A N/A run_suite N/A N/A N/A test_classes N/A N/A  Run the test suite  N/A loader N/A N/A unittest TestLoader N/A suite N/A N/A unittest TestSuite N/A test_class test_classes N/A N/A tests N/A N/A loader loadTestsFromTestCase test_class N/A N/A N/A suite addTests tests N/A N/A suite None N/A N/A N/A N/A N/A N/A unittest TextTestRunner verbosity 2 run suite N/A N/A N/A N/A __name__ __main__ N/A N/A N/A run_suite S3FilterWidgetTests