Part of lp.bugs.browser.tests.test_bugtask View In Hierarchy
Method | makeView | Make a BugTaskSearchListingView. |
Method | test_rendered_query_counts_constant_with_many_bugtasks | Undocumented |
Method | test_mustache_model_in_json | The IJSONRequestCache should contain mustache_model. |
Method | test_no_next_prev_for_single_batch | The IJSONRequestCache should contain data about ajacent batches. |
Method | test_next_for_multiple_batch | The IJSONRequestCache should contain data about the next batch. |
Method | test_prev_for_multiple_batch | The IJSONRequestCache should contain data about the next batch. |
Method | test_provides_view_name | The IJSONRequestCache should provide the view's name. |
Method | test_default_order_by | order_by defaults to '-importance in JSONRequestCache |
Method | test_order_by_importance | order_by follows query params in JSONRequestCache |
Method | test_cache_has_all_batch_vars_defaults | Cache has all the needed variables. |
Method | test_cache_has_all_batch_vars_specified | Cache has all the needed variables. |
Method | test_cache_field_visibility | Cache contains sane-looking field_visibility values. |
Method | test_cache_cookie_name | The cookie name should be in cache for js code access. |
Method | test_cache_field_visibility_matches_cookie | Cache contains cookie-matching values for field_visibiliy. |
Method | test_exclude_unsupported_cookie_values | Cookie values not present in defaults are ignored. |
Method | test_add_defaults_to_cookie_values | Where cookie values are missing, defaults are used |
Method | test_cache_field_visibility_defaults | Cache contains sane-looking field_visibility_defaults values. |
Method | getBugtaskBrowser | Return a browser for a new bugtask. |
Method | assertHTML | Assert something about a browser's HTML. |
Static Method | getBugNumberTag | Bug numbers with a leading hash are unique to new rendering. |
Method | test_mustache_rendering | If the flag is present, then all mustache features appear. |
Method | test_mustache_rendering_obfuscation | For anonymous users, email addresses are obfuscated. |
Method | getNavigator | Undocumented |
Method | test_hiding_bug_number | Hiding a bug number makes it disappear from the page. |
Method | test_hiding_status | Hiding status makes it disappear from the page. |
Method | test_hiding_importance | Hiding importance removes the text and CSS. |
Method | test_show_information_type | Showing information_type adds the text. |
Method | test_hiding_bugtarget | Hiding bugtarget removes the text and CSS. |
Method | test_hiding_bug_heat | Hiding bug heat removes the html and CSS. |
Method | test_hiding_milstone_name | Showing milestone name shows the text. |
Method | test_hiding_assignee | Showing milestone name shows the text. |
Method | test_hiding_age | Showing age shows the text. |
Method | test_hiding_tags | Showing tags shows the text. |
Method | test_hiding_reporter | Showing reporter shows the text. |
Method | test_hiding_last_updated | Showing last_updated shows the text. |
Method | test_sort_keys_in_json_cache | Undocumented |
Method | test_sort_keys_in_json_cache_data | Undocumented |
Method | test_tags_encoded_in_model | Undocumented |
Inherited from BrowserTestCase:
Method | setUp | Provide useful defaults. |
Method | getViewBrowser | Undocumented |
Method | getMainContent | Beautiful soup of the main content area of context's page. |
Method | getMainText | Return the main text of a context's page. |
Inherited from TestCaseWithFactory (via BrowserTestCase):
Method | getUserBrowser | Return a Browser logged in as a fresh user, maybe opened at url . |
Method | getNonRedirectingBrowser | Undocumented |
Method | createBranchAtURL | Create a branch at the supplied URL. |
Method | create_branch_and_tree | Create a database branch, bzr branch and bzr checkout. |
Method | createBzrBranch | Create a bzr branch for a database branch. |
Static Method | getBranchPath | Return the path of the branch in the mirrored area. |
Method | useTempBzrHome | Undocumented |
Method | useBzrBranches | Prepare for using bzr branches. |
Inherited from TestCase (via BrowserTestCase, TestCaseWithFactory):
Method | becomeDbUser | Commit, then log into the database as dbuser . |
Method | __str__ | The string representation of a test is its id. |
Method | useContext | Use the supplied context in this test. |
Method | makeTemporaryDirectory | Create a temporary directory, and return its path. |
Method | installKarmaRecorder | Set up and return a KarmaRecorder . |
Method | assertProvides | Assert 'obj' correctly provides 'interface'. |
Method | assertNotifies | Assert that a callable performs a given notification. |
Method | assertNoNotification | Assert that no notifications are generated by the callable. |
Method | assertSqlAttributeEqualsDate | Fail unless the value of the attribute is equal to the date. |
Method | assertTextMatchesExpressionIgnoreWhitespace | Undocumented |
Method | assertIsInstance | Assert that an instance is an instance of assert_class. |
Method | assertIsNot | Assert that expected is not the same object as observed . |
Method | assertContentEqual | Assert that 'iter1' has the same content as 'iter2'. |
Method | assertRaisesWithContent | Check if the given exception is raised with given content. |
Method | assertBetween | Assert that 'variable' is strictly between two boundaries. |
Method | assertVectorEqual | Apply assertEqual to all given pairs in one go. |
Method | expectedLog | Expect a log to be written that matches the regex. |
Method | pushConfig | Push some key-value pairs into a section of the config. |
Method | attachOopses | Undocumented |
Method | attachLibrarianLog | Include the logChunks from fixture in the test details. |
Method | assertStatementCount | Assert that the expected number of SQL statements occurred. |
Method | useTempDir | Use a temporary directory for this test. |
Method | assertEmailHeadersEqual | Assert that two email headers are equal. |
Method | assertStartsWith | Undocumented |
Method | assertEndsWith | Asserts that s ends with suffix. |
Method | checkPermissions | Check if the used_permissions match expected_permissions. |
Method | assertEmailQueueLength | Pop the email queue, assert its length, and return it. |
Method | _unfoldEmailHeader | Unfold a multiline email header. |
Parameters | bugtask | The task to use for searching. |
size | The size of the batches. Required if forwards is False. | |
memo | Batch identifier. | |
orderby | The way to order the batch. | |
forwards | If true, walk forwards from the memo. Else walk backwards. |
mustache_model should contain bugtasks, the BugTaskListingItem.model for each BugTask.
mustache_model should contain items, the BugTaskListingItem.model for each BugTask.
mustache_model should contain items, the BugTaskListingItem.model for each BugTask.
mustache_model should contain items, the BugTaskListingItem.model for each BugTask.
order_by, memo, start, forwards. These default to sane values.
order_by, memo, start, forwards. These are calculated appropriately.