def test_sourcepackage(self): distroseries = self.factory.makeDistroSeries( distribution=self.factory.makeDistribution(name='fooix'), name='1.0') sp = distroseries.getSourcePackage( self.factory.makeSourcePackageName('bar')) self.assertEqual('fooix/1.0/+source/bar', format_target(sp))
def test_distributionsourcepackage(self): distribution = self.factory.makeDistribution(name='fooix') dsp = distribution.getSourcePackage( self.factory.makeSourcePackageName('bar')) self.assertEqual('fooix/+source/bar', format_target(dsp))
def test_distroseries(self): distroseries = self.factory.makeDistroSeries( distribution=self.factory.makeDistribution(name='fooix'), name='1.0') self.assertEqual('fooix/1.0', format_target(distroseries))
def test_distribution(self): distribution = self.factory.makeDistribution(name='fooix') self.assertEqual('fooix', format_target(distribution))
def test_productseries(self): productseries = self.factory.makeProductSeries( product=self.factory.makeProduct(name='fooix'), name='1.0') self.assertEqual('fooix/1.0', format_target(productseries))
def test_product(self): product = self.factory.makeProduct(name='fooix') self.assertEqual('fooix', format_target(product))