Exemplo n.º 1
0
 def test_getBugTarget_source_package(self):
     distribution = self.factory.makeDistribution(name='fnord')
     series = self.factory.makeDistroSeries(
         name='pting', distribution=distribution)
     package = self.factory.makeSourcePackage(
         sourcepackagename='snarf', distroseries=series, publish=True)
     self.assertEqual(
         package, AffectsEmailCommand.getBugTarget('fnord/pting/snarf'))
Exemplo n.º 2
0
 def test_getBugTarget_distribution_source_package(self):
     distribution = self.factory.makeDistribution(name='fnord')
     series = self.factory.makeDistroSeries(name='pting',
                                            distribution=distribution)
     package = self.factory.makeSourcePackage(sourcepackagename='snarf',
                                              distroseries=series,
                                              publish=True)
     dsp = distribution.getSourcePackage(package.name)
     self.assertEqual(dsp, AffectsEmailCommand.getBugTarget('fnord/snarf'))
Exemplo n.º 3
0
 def test_getBugTarget_project(self):
     project = self.factory.makeProduct(name='fnord')
     self.assertEqual(project, AffectsEmailCommand.getBugTarget('fnord'))
Exemplo n.º 4
0
 def test_getBugTarget_distroseries(self):
     distribution = self.factory.makeDistribution(name='fnord')
     series = self.factory.makeDistroSeries(name='pting',
                                            distribution=distribution)
     self.assertEqual(series,
                      AffectsEmailCommand.getBugTarget('fnord/pting'))
Exemplo n.º 5
0
 def test_getBugTarget_distribution(self):
     distribution = self.factory.makeDistribution(name='fnord')
     self.assertEqual(distribution,
                      AffectsEmailCommand.getBugTarget('fnord'))
Exemplo n.º 6
0
 def test_getBugTarget_project_series(self):
     project = self.factory.makeProduct(name='fnord')
     series = self.factory.makeProductSeries(name='pting', product=project)
     self.assertEqual(series,
                      AffectsEmailCommand.getBugTarget('fnord/pting'))
Exemplo n.º 7
0
 def test_getBugTarget_project(self):
     project = self.factory.makeProduct(name='fnord')
     self.assertEqual(project, AffectsEmailCommand.getBugTarget('fnord'))
Exemplo n.º 8
0
 def test_getBugTarget_distroseries(self):
     distribution = self.factory.makeDistribution(name='fnord')
     series = self.factory.makeDistroSeries(
         name='pting', distribution=distribution)
     self.assertEqual(
         series, AffectsEmailCommand.getBugTarget('fnord/pting'))
Exemplo n.º 9
0
 def test_getBugTarget_distribution(self):
     distribution = self.factory.makeDistribution(name='fnord')
     self.assertEqual(
         distribution, AffectsEmailCommand.getBugTarget('fnord'))
Exemplo n.º 10
0
 def test_getBugTarget_project_series(self):
     project = self.factory.makeProduct(name='fnord')
     series = self.factory.makeProductSeries(name='pting', product=project)
     self.assertEqual(
         series, AffectsEmailCommand.getBugTarget('fnord/pting'))