Part of lp.testing View In Hierarchy
Known subclasses: lp.answers.browser.tests.test_questionmessages.TestHideQuestionMessageControls, lp.answers.browser.tests.test_questionmessages.TestQuestionMessageVisibility, lp.answers.browser.tests.test_views.TestEmailObfuscated, lp.blueprints.browser.tests.test_person_upcomingwork.TestPersonUpcomingWork, lp.blueprints.browser.tests.test_specification.TestNewSpecificationDefaultInformationTypeProduct, lp.blueprints.browser.tests.test_specification.TestNewSpecificationDefaultInformationTypeProductSeries, lp.blueprints.browser.tests.test_specification.TestNewSpecificationInformationType, lp.blueprints.browser.tests.test_specification.TestSpecificationInformationType, lp.blueprints.browser.tests.test_specification.TestSpecificationSet, lp.blueprints.browser.tests.test_specification.TestSpecificationView, lp.blueprints.browser.tests.test_specification.TestSpecificationViewPrivateArtifacts, lp.blueprints.browser.tests.test_specificationdependency.TestAddDependency, lp.blueprints.browser.tests.test_specificationtarget.TestPrivacy, lp.blueprints.browser.tests.test_sprint.TestSprintDeleteView, lp.blueprints.browser.tests.test_sprint.TestSprintIndex, lp.bugs.browser.tests.test_bug_views.TestAlsoAffectsLinks, lp.bugs.browser.tests.test_bug_views.TestBugCanonicalUrl, lp.bugs.browser.tests.test_bug_views.TestEmailObfuscated, lp.bugs.browser.tests.test_bug_views.TestMainBugView, lp.bugs.browser.tests.test_bug_views.TestPrivateBugLinks, lp.bugs.browser.tests.test_bugcomment.TestBugCommentInBrowser, lp.bugs.browser.tests.test_bugcomment.TestBugCommentMicroformats, lp.bugs.browser.tests.test_bugcomment.TestBugCommentVisibility, lp.bugs.browser.tests.test_bugcomment.TestBugHideCommentControls, lp.bugs.browser.tests.test_buglisting.TestBugTaskSearchListingPage, lp.bugs.browser.tests.test_buglisting.TestPersonBugListing, lp.bugs.browser.tests.test_bugsupervisor.TestBugSupervisorLink, lp.bugs.browser.tests.test_bugtask.TestBugTaskExpirableListingView, lp.bugs.browser.tests.test_bugtask.TestBugTaskSearchListingView, lp.code.browser.tests.test_branch.TestBranchDiffView, lp.code.browser.tests.test_branch.TestBranchRescanView, lp.code.browser.tests.test_branch.TestBranchView, lp.code.browser.tests.test_branch.TestBranchViewPrivateArtifacts, lp.code.browser.tests.test_branchlisting.TestPersonBranchesPage, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposal, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalBrowserView, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalDeleteViewBzr, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalDeleteViewGit, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalLinkBugViewBzr, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalLinkBugViewGit, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalMergedViewBzr, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalMergedViewGit, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalRequestReviewViewBzr, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalRequestReviewViewGit, lp.code.browser.tests.test_branchmergeproposal.TestBranchMergeProposalRescanView, lp.code.browser.tests.test_branchmergeproposal.TestCodeReviewCommentHideControls, lp.code.browser.tests.test_branchmergeproposal.TestCodeReviewCommentVisibility, lp.code.browser.tests.test_branchmergeproposal.TestRegisterBranchMergeProposalViewBzr, lp.code.browser.tests.test_branchmergeproposal.TestRegisterBranchMergeProposalViewGit, lp.code.browser.tests.test_branchmergeproposal.TestResubmitBrowserBzr, lp.code.browser.tests.test_branchmergeproposal.TestResubmitBrowserGit, lp.code.browser.tests.test_branchmergeproposallisting.TestBranchActiveReviews, lp.code.browser.tests.test_branchmergeproposallisting.TestBranchDependentMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestBranchMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestDistributionSourcePackageActiveReviews, lp.code.browser.tests.test_branchmergeproposallisting.TestDistributionSourcePackageMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestGitRefActiveReviews, lp.code.browser.tests.test_branchmergeproposallisting.TestGitRefDependentMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestGitRefMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestMergesOnce, lp.code.browser.tests.test_branchmergeproposallisting.TestPersonActiveReviews, lp.code.browser.tests.test_branchmergeproposallisting.TestPersonMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestPersonProductActiveReviews, lp.code.browser.tests.test_branchmergeproposallisting.TestPersonProductMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestProductActiveReviews, lp.code.browser.tests.test_branchmergeproposallisting.TestProductMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestProjectGroupActiveReviews, lp.code.browser.tests.test_branchmergeproposallisting.TestProjectGroupMerges, lp.code.browser.tests.test_branchmergeproposallisting.TestSourcePackageActiveReviews, lp.code.browser.tests.test_branchmergeproposallisting.TestSourcePackageMerges, lp.code.browser.tests.test_codereviewcomment.TestCodeReviewCommentHtmlBzr, lp.code.browser.tests.test_codereviewcomment.TestCodeReviewCommentHtmlGit, lp.code.browser.tests.test_gitref.TestGitRefView, lp.code.browser.tests.test_gitrepository.TestGitRepositoryActivityView, lp.code.browser.tests.test_gitrepository.TestGitRepositoryBranches, lp.code.browser.tests.test_gitrepository.TestGitRepositoryDeletionView, lp.code.browser.tests.test_gitrepository.TestGitRepositoryDiffView, lp.code.browser.tests.test_gitrepository.TestGitRepositoryPermissionsView, lp.code.browser.tests.test_gitrepository.TestGitRepositoryView, lp.code.browser.tests.test_gitrepository.TestGitRepositoryViewPrivateArtifacts, lp.code.browser.tests.test_gitsubscription.TestGitSubscriptionAddView, lp.code.browser.tests.test_product.TestProductBranchesServiceUsages, lp.code.browser.tests.test_product.TestProductBranchesViewPortlets, lp.code.browser.tests.test_sourcepackagerecipe.TestBrokenExistingRecipesBzr, lp.code.browser.tests.test_sourcepackagerecipe.TestBrokenExistingRecipesGit, lp.code.browser.tests.test_sourcepackagerecipe.TestCaseForRecipe, lp.code.browser.tests.test_sourcepackagerecipe.TestSourcePackageRecipeBuildViewBzr, lp.code.browser.tests.test_sourcepackagerecipe.TestSourcePackageRecipeBuildViewGit, lp.code.browser.tests.test_sourcepackagerecipebuild.TestSourcePackageRecipeBuild, lp.code.browser.tests.test_sourcepackagerecipelisting.TestSourcePackageRecipeListing, lp.registry.browser.tests.test_codeofconduct.TestCodeOfConductBrowser, lp.registry.browser.tests.test_milestone.TestMilestoneViews, lp.registry.browser.tests.test_person.TestPersonIndexView, lp.registry.browser.tests.test_person.TestPersonRdfView, lp.registry.browser.tests.test_product.TestBrowserProductSetBranchView, lp.registry.browser.tests.test_product.TestProductConfiguration, lp.registry.browser.tests.test_product.TestProductEditView, lp.registry.browser.tests.test_product.TestProductRdfView, lp.registry.browser.tests.test_product.TestProductSet, lp.registry.browser.tests.test_product.TestProductView, lp.registry.browser.tests.test_productseries_views.TestProductSeries, lp.registry.browser.tests.test_productseries_views.TestWithBrowser, lp.registry.browser.tests.test_projectgroup.TestProjectGroupView, lp.registry.browser.tests.test_sourcepackage_views.TestSourcePackageChangeUpstreamView, lp.registry.browser.tests.test_sourcepackage_views.TestSourcePackageView, lp.registry.browser.tests.test_subscription_links.DistroView, lp.services.features.browser.tests.test_feature_editor.TestFeatureControlPage, lp.services.features.browser.tests.test_feature_info.TestFeatureControlPage, lp.services.webapp.tests.test_view_model.TestJsonModelView, lp.snappy.browser.tests.test_snap.BaseTestSnapView, lp.snappy.browser.tests.test_snapbuild.TestSnapBuildOperations, lp.snappy.browser.tests.test_snaplisting.TestSnapListing, lp.soyuz.browser.tests.test_livefs.TestLiveFSAddView, lp.soyuz.browser.tests.test_livefs.TestLiveFSAdminView, lp.soyuz.browser.tests.test_livefs.TestLiveFSDeleteView, lp.soyuz.browser.tests.test_livefs.TestLiveFSEditView, lp.soyuz.browser.tests.test_livefs.TestLiveFSView, lp.soyuz.browser.tests.test_livefsbuild.TestLiveFSBuildOperations, lp.soyuz.browser.tests.test_publishing.TestSourcePublicationListingExtra, lp.soyuz.tests.test_archive_subscriptions.PrivateArtifactsViewTestCase, lp.translations.browser.tests.test_noindex.TestRobotsDistro, lp.translations.browser.tests.test_noindex.TestRobotsDistroSeries, lp.translations.browser.tests.test_noindex.TestRobotsProduct, lp.translations.browser.tests.test_noindex.TestRobotsProductSeries, lp.translations.browser.tests.test_noindex.TestRobotsProjectGroup, lp.translations.browser.tests.test_persontranslationview.TestPersonTranslationViewPermissions, lp.translations.browser.tests.test_pofile_view.TestBrowser, lp.translations.browser.tests.test_productseries.TestProductSeries, lp.translations.browser.tests.test_sharing_details.TestSourcePackageSharingDetailsPage, lp.translations.browser.tests.test_sharing_information.TestDummyPOFileSharingInfo, lp.translations.browser.tests.test_sharing_information.TestPOFileSharingInfo, lp.translations.browser.tests.test_sharing_information.TestUbuntuPOTemplateSharingInfo, lp.translations.browser.tests.test_sharing_information.TestUbuntuSharingInfo, lp.translations.browser.tests.test_sharing_information.TestUpstreamPOTemplateSharingInfo, lp.translations.browser.tests.test_sharing_information.TestUpstreamSharingInfo, lp.translations.browser.tests.test_translationgroup.TestTranslationGroupViewPermissions
This testcase provides an API similar to page tests, and can be used for cases when one wants a unit test and not a frakking pagetest.
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:
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 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. |