Module Expr Str Import alias ImportFrom alias alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Str NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Str NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Str NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Str ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Str ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Str Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Tests for template tags/filters for running tests. N/A datetime django.template Template Context N/A mock tests case ResultForTest N/A N/A case DBTestCase N/A N/A Tests for the result_for template tag. result_for N/A N/A self runcaseversion user environment render N/A N/A N/A Execute template tag with given args and render given string. N/A t N/A Template N/A {% load execution %}{% result_for rcv user env as result %} render N/A N/A N/A t render N/A Context N/A rcv user env runcaseversion user environment N/A test_result_exists N/A N/A self N/A N/A N/A If the result already exists, it is returned. N/A r N/A N/A N/A self F ResultFactory N/A N/A N/A self assertEqual N/A N/A self result_for N/A r runcaseversion N/A r tester N/A r environment {{ result.id }} N/A str N/A r id N/A test_dupe_complete_results_keeps_both_finds_latest N/A N/A self N/A N/A N/A If dupe completed results exists, find the last-modified. N/A N/A N/A mock patch moztrap.model.mtmodel.utcnow mock_utcnow N/A N/A N/A mock_utcnow return_value N/A N/A datetime datetime 2012 3 24 N/A r N/A N/A N/A self F ResultFactory status passed N/A N/A mock_utcnow return_value N/A N/A datetime datetime 2012 3 25 N/A r2 N/A N/A N/A self F ResultFactory tester N/A r tester runcaseversion N/A r runcaseversion environment N/A r environment status failed N/A N/A N/A self assertEqual N/A N/A self result_for N/A r runcaseversion N/A r tester N/A r environment {{ result.id }} N/A str N/A r2 id N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A self model Result objects count 2 N/A test_dupe_incomplete_results_keeps_both_finds_latest N/A N/A self N/A N/A N/A If dupe incomplete results exists, find the last-modified. N/A N/A N/A mock patch moztrap.model.mtmodel.utcnow mock_utcnow N/A N/A N/A mock_utcnow return_value N/A N/A datetime datetime 2012 3 24 N/A r N/A N/A N/A self F ResultFactory N/A N/A mock_utcnow return_value N/A N/A datetime datetime 2012 3 25 N/A r2 N/A N/A N/A self F ResultFactory tester N/A r tester runcaseversion N/A r runcaseversion environment N/A r environment N/A N/A N/A self assertEqual N/A N/A self result_for N/A r runcaseversion N/A r tester N/A r environment {{ result.id }} N/A str N/A r2 id N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A self model Result objects count 2 N/A test_dupe_latest_results_sets_non_latest_to_false N/A N/A self N/A N/A N/A If dupe latest results exists, keep the last-modified. N/A N/A N/A mock patch moztrap.model.mtmodel.utcnow mock_utcnow N/A N/A N/A mock_utcnow return_value N/A N/A datetime datetime 2012 3 24 N/A res1 N/A N/A N/A self F ResultFactory status passed N/A N/A mock_utcnow return_value N/A N/A datetime datetime 2012 3 25 N/A res2 N/A N/A N/A self F ResultFactory tester N/A res1 tester runcaseversion N/A res1 runcaseversion environment N/A res1 environment status passed N/A N/A mock_utcnow return_value N/A N/A datetime datetime 2012 3 24 N/A N/A N/A N/A N/A N/A N/A N/A self model Result objects filter pk N/A res1 pk update is_latest True N/A N/A N/A self assertEqual N/A N/A self result_for N/A res1 runcaseversion N/A res1 tester N/A res1 environment {{ result.id }} N/A str N/A res2 id N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A self model Result objects count 2 N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A N/A self model Result objects get is_latest True pk N/A res2 pk N/A test_result_does_not_exist N/A N/A self N/A N/A N/A If the result does not exist, a new unsaved one is returned. N/A rcv N/A N/A N/A N/A self F RunCaseVersionFactory create N/A env N/A N/A N/A N/A self F EnvironmentFactory create N/A user N/A N/A N/A N/A self F UserFactory create N/A N/A N/A self assertEqual N/A N/A self result_for rcv user env {{ result.id }} {{ result.runcaseversion.id }} {{ result.environment.id }} {{ result.tester.id }} N/A N/A None {0} {1} {2} format N/A rcv id N/A env id N/A user id N/A N/A StepResultForTest N/A N/A case DBTestCase N/A N/A Tests for the step_result_for template tag. result_for N/A N/A self result step render N/A N/A N/A Execute template tag with given args and render given string. N/A t N/A Template N/A {% load execution %}{% stepresult_for result step as stepresult %} render N/A N/A N/A t render N/A Context N/A result step result step N/A test_stepresult_exists N/A N/A self N/A N/A N/A If the step result already exists, it is returned. N/A sr N/A N/A N/A self F StepResultFactory N/A N/A N/A self assertEqual N/A N/A self result_for N/A sr result N/A sr step {{ stepresult.id }} N/A str N/A sr id N/A test_step_result_does_not_exist N/A N/A self N/A N/A N/A If the step result does not exist, a new unsaved one is returned. N/A r N/A N/A N/A N/A self F ResultFactory create N/A step N/A N/A N/A N/A self F CaseStepFactory create N/A N/A N/A self assertEqual N/A N/A self result_for r step {{ stepresult.id }} {{ stepresult.result.id }} {{ stepresult.step.id }} N/A N/A None {0} {1} format N/A r id N/A step id N/A test_result_does_not_exist N/A N/A self N/A N/A N/A If given result is not saved, unsaved step result is returned. N/A r N/A N/A N/A N/A self F ResultFactory build N/A step N/A N/A N/A N/A self F CaseStepFactory create N/A N/A N/A self assertEqual N/A N/A self result_for r step {{ stepresult.id }} {{ stepresult.result.id }} {{ stepresult.step.id }} N/A N/A None None {0} format N/A step id N/A N/A SuitesForTest N/A N/A case DBTestCase N/A N/A Tests for the suites_for template tag. suites_for N/A N/A self run runcaseversion render N/A N/A N/A Execute template tag with given args and render given string. N/A t N/A Template N/A {% load execution %}{% suites_for run runcaseversion as suites %} render N/A N/A N/A t render N/A Context N/A run runcaseversion run runcaseversion N/A test_multiple_source_suites N/A N/A self N/A N/A N/A Sets source suites for a caseversion in multiple included suites. N/A envs N/A N/A N/A N/A self F EnvironmentFactory create_set N/A os N/A Atari N/A pv N/A N/A N/A self F ProductVersionFactory environments envs N/A tc N/A N/A N/A N/A self F CaseFactory create product N/A pv product N/A cv N/A N/A N/A N/A self F CaseVersionFactory create case tc productversion pv status active N/A ts1 N/A N/A N/A N/A self F SuiteFactory create product N/A pv product status active N/A N/A N/A N/A N/A self F SuiteCaseFactory create suite ts1 case tc N/A ts2 N/A N/A N/A N/A self F SuiteFactory create product N/A pv product status active N/A N/A N/A N/A N/A self F SuiteCaseFactory create suite ts2 case tc N/A r N/A N/A N/A N/A self F RunFactory create productversion pv environments envs N/A N/A N/A N/A N/A self F RunSuiteFactory create suite ts1 run r N/A N/A N/A N/A N/A self F RunSuiteFactory create suite ts2 run r N/A N/A N/A r activate N/A N/A N/A self assertEqual N/A N/A self suites_for r N/A N/A N/A N/A N/A self model RunCaseVersion objects get {% for suite in suites %}{{ suite.id }} {% endfor %} N/A N/A {0} {1}  format N/A ts1 id N/A ts2 id N/A test_source_suite N/A N/A self N/A N/A N/A Sets source suites for each runcaseversion. N/A envs N/A N/A N/A N/A self F EnvironmentFactory create_set N/A os N/A Atari N/A pv N/A N/A N/A self F ProductVersionFactory environments envs N/A tc N/A N/A N/A N/A self F CaseFactory create product N/A pv product N/A N/A N/A N/A N/A self F CaseVersionFactory create case tc productversion pv status active N/A ts N/A N/A N/A N/A self F SuiteFactory create product N/A pv product status active N/A N/A N/A N/A N/A self F SuiteCaseFactory create suite ts case tc N/A r N/A N/A N/A N/A self F RunFactory create productversion pv environments envs N/A N/A N/A N/A N/A self F RunSuiteFactory create suite ts run r N/A N/A N/A r activate N/A rcv N/A N/A N/A r runcaseversions get N/A N/A N/A self assertEqual N/A N/A self suites_for r N/A N/A N/A N/A N/A self model RunCaseVersion objects get {% for suite in suites %}{{ suite.id }} {% endfor %} N/A N/A {0}  format N/A ts id N/A N/A