コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 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)