def test_processOptions_for_all_derived_ignores_nonderived_distros(self): distro = self.factory.makeDistribution() script = PublishFTPMaster(test_args=['--all-derived']) script.processOptions() self.assertNotIn(distro, script.distributions)
def test_processOptions_for_all_derived_finds_derived_distros(self): dsp = self.factory.makeDistroSeriesParent() script = PublishFTPMaster(test_args=['--all-derived']) script.processOptions() self.assertIn(dsp.derived_series.distribution, script.distributions)