l.a.t.t.TestPublishDistroMethods(TestCaseWithFactory) : class documentation

Part of lp.archivepublisher.tests.test_publishdistro View In Hierarchy

Fine-grained unit tests for PublishDistro.
Method makeDistro Create a distribution.
Method makeScript Create a PublishDistro for distribution.
Method test_isCareful_is_false_if_option_not_set Undocumented
Method test_isCareful_is_true_if_option_is_set Undocumented
Method test_isCareful_is_true_if_global_careful_option_is_set Undocumented
Method test_describeCare_reports_non_careful_option Undocumented
Method test_describeCare_reports_careful_option Undocumented
Method test_describeCare_reports_careful_override Undocumented
Method test_countExclusiveOptions_is_zero_if_none_set Undocumented
Method test_countExclusiveOptions_counts_partner Undocumented
Method test_countExclusiveOptions_counts_ppa Undocumented
Method test_countExclusiveOptions_counts_private_ppa Undocumented
Method test_countExclusiveOptions_counts_copy_archive Undocumented
Method test_countExclusiveOptions_detects_conflict Undocumented
Method test_validateOptions_rejects_nonoption_arguments Undocumented
Method test_validateOptions_rejects_exclusive_option_conflict Undocumented
Method test_validateOptions_does_not_accept_distsroot_for_ppa Undocumented
Method test_validateOptions_does_not_accept_distsroot_for_private_ppa Undocumented
Method test_validateOptions_accepts_all_derived_without_distro Undocumented
Method test_validateOptions_does_not_accept_distro_with_all_derived Undocumented
Method test_findDistros_finds_selected_distribution Undocumented
Method test_findDistros_finds_ubuntu_by_default Undocumented
Method test_findDistros_raises_if_selected_distro_not_found Undocumented
Method test_findDistros_for_all_derived_distros_may_return_empty Undocumented
Method test_findDistros_for_all_derived_finds_derived_distros Undocumented
Method test_findDistros_for_all_derived_ignores_ubuntu Undocumented
Method test_findDistros_for_all_derived_ignores_nonderived_distros Undocumented
Method test_findSuite_finds_release_pocket Undocumented
Method test_findSuite_finds_other_pocket Undocumented
Method test_findSuite_raises_if_not_found Undocumented
Method test_findAllowedSuites_finds_nothing_if_no_suites_given Undocumented
Method test_findAllowedSuites_finds_series_and_pocket Undocumented
Method test_findAllowedSuites_finds_multiple Undocumented
Method test_getCopyArchives_returns_list Undocumented
Method test_getCopyArchives_raises_if_not_found Undocumented
Method test_getCopyArchives_ignores_other_archive_purposes Undocumented
Method test_getCopyArchives_ignores_other_distros Undocumented
Method test_getPPAs_gets_pending_distro_PPAs_if_careful Undocumented
Method test_getPPAs_gets_nonpending_distro_PPAs_if_careful Undocumented
Method test_getPPAs_gets_nonpending_distro_PPAs_if_requested Undocumented
Method test_getPPAs_gets_pending_distro_PPAs_if_not_careful Undocumented
Method test_getPPAs_ignores_nonpending_distro_PPAs_if_not_careful Undocumented
Method test_getPPAs_returns_empty_if_careful_and_no_PPAs_found Undocumented
Method test_getPPAs_returns_empty_if_not_careful_and_no_PPAs_found Undocumented
Method test_getTargetArchives_gets_partner_archive Undocumented
Method test_getTargetArchives_ignores_public_ppas_if_private Undocumented
Method test_getTargetArchives_gets_private_ppas_if_private Undocumented
Method test_getTargetArchives_gets_public_ppas_if_not_private Undocumented
Method test_getTargetArchives_ignores_private_ppas_if_not_private Undocumented
Method test_getTargetArchives_gets_copy_archives Undocumented
Method test_getPublisher_returns_publisher Undocumented
Method test_deleteArchive_deletes_ppa Undocumented
Method test_deleteArchive_ignores_non_ppa Undocumented
Method test_publishArchive_drives_publisher Undocumented
Method test_publishArchive_honours_disable_options Undocumented
Method test_publishArchive_uses_apt_ftparchive_for_main_archive Undocumented
Method test_publishArchive_writes_own_indexes_for_ppa Undocumented
Method test_publishes_only_selected_archives Undocumented

Inherited from TestCaseWithFactory:

Method setUp Undocumented
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.
def makeDistro(self):
Create a distribution.
def makeScript(self, distribution=None, args=, all_derived=False):
Create a PublishDistro for distribution.
def test_isCareful_is_false_if_option_not_set(self):
Undocumented
def test_isCareful_is_true_if_option_is_set(self):
Undocumented
def test_isCareful_is_true_if_global_careful_option_is_set(self):
Undocumented
def test_describeCare_reports_non_careful_option(self):
Undocumented
def test_describeCare_reports_careful_option(self):
Undocumented
def test_describeCare_reports_careful_override(self):
Undocumented
def test_countExclusiveOptions_is_zero_if_none_set(self):
Undocumented
def test_countExclusiveOptions_counts_partner(self):
Undocumented
def test_countExclusiveOptions_counts_ppa(self):
Undocumented
def test_countExclusiveOptions_counts_private_ppa(self):
Undocumented
def test_countExclusiveOptions_counts_copy_archive(self):
Undocumented
def test_countExclusiveOptions_detects_conflict(self):
Undocumented
def test_validateOptions_rejects_nonoption_arguments(self):
Undocumented
def test_validateOptions_rejects_exclusive_option_conflict(self):
Undocumented
def test_validateOptions_does_not_accept_distsroot_for_ppa(self):
Undocumented
def test_validateOptions_does_not_accept_distsroot_for_private_ppa(self):
Undocumented
def test_validateOptions_accepts_all_derived_without_distro(self):
Undocumented
def test_validateOptions_does_not_accept_distro_with_all_derived(self):
Undocumented
def test_findDistros_finds_selected_distribution(self):
Undocumented
def test_findDistros_finds_ubuntu_by_default(self):
Undocumented
def test_findDistros_raises_if_selected_distro_not_found(self):
Undocumented
def test_findDistros_for_all_derived_distros_may_return_empty(self):
Undocumented
def test_findDistros_for_all_derived_finds_derived_distros(self):
Undocumented
def test_findDistros_for_all_derived_ignores_ubuntu(self):
Undocumented
def test_findDistros_for_all_derived_ignores_nonderived_distros(self):
Undocumented
def test_findSuite_finds_release_pocket(self):
Undocumented
def test_findSuite_finds_other_pocket(self):
Undocumented
def test_findSuite_raises_if_not_found(self):
Undocumented
def test_findAllowedSuites_finds_nothing_if_no_suites_given(self):
Undocumented
def test_findAllowedSuites_finds_series_and_pocket(self):
Undocumented
def test_findAllowedSuites_finds_multiple(self):
Undocumented
def test_getCopyArchives_returns_list(self):
Undocumented
def test_getCopyArchives_raises_if_not_found(self):
Undocumented
def test_getCopyArchives_ignores_other_archive_purposes(self):
Undocumented
def test_getCopyArchives_ignores_other_distros(self):
Undocumented
def test_getPPAs_gets_pending_distro_PPAs_if_careful(self):
Undocumented
def test_getPPAs_gets_nonpending_distro_PPAs_if_careful(self):
Undocumented
def test_getPPAs_gets_nonpending_distro_PPAs_if_requested(self):
Undocumented
def test_getPPAs_gets_pending_distro_PPAs_if_not_careful(self):
Undocumented
def test_getPPAs_ignores_nonpending_distro_PPAs_if_not_careful(self):
Undocumented
def test_getPPAs_returns_empty_if_careful_and_no_PPAs_found(self):
Undocumented
def test_getPPAs_returns_empty_if_not_careful_and_no_PPAs_found(self):
Undocumented
def test_getTargetArchives_gets_partner_archive(self):
Undocumented
def test_getTargetArchives_ignores_public_ppas_if_private(self):
Undocumented
def test_getTargetArchives_gets_private_ppas_if_private(self):
Undocumented
def test_getTargetArchives_gets_public_ppas_if_not_private(self):
Undocumented
def test_getTargetArchives_ignores_private_ppas_if_not_private(self):
Undocumented
def test_getTargetArchives_gets_copy_archives(self):
Undocumented
def test_getPublisher_returns_publisher(self):
Undocumented
def test_deleteArchive_deletes_ppa(self):
Undocumented
def test_deleteArchive_ignores_non_ppa(self):
Undocumented
def test_publishArchive_drives_publisher(self):
Undocumented
def test_publishArchive_honours_disable_options(self):
Undocumented
def test_publishArchive_uses_apt_ftparchive_for_main_archive(self):
Undocumented
def test_publishArchive_writes_own_indexes_for_ppa(self):
Undocumented
def test_publishes_only_selected_archives(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2018-08-20 00:00:04.