Thanks for making this change. Creating the soyuz publication and cache data for binary package is truly difficult. I think we want to make that easier in the future, but for now, using sample data to close an oops is the best thing.
You can land your branch after you address my style concern below.
This form of wrapping is hard to read we use () to work with long strings
and we take advantage of string concatenation rules. We want to see preserve
indentation so that the code is easy to scan. In general, we avoid
the use of \ because you have to read the ending of a line to know what is
happening on another. We avoid end comments for the same reason. I think
format works: expected_summary = ( u'mozilla-firefox: Mozilla Firefox Web Browser\n' u'mozilla-firefox-data: No summary available for ' u'mozilla-firefox-data in ubuntu warty.')
Hi John.
Thanks for making this change. Creating the soyuz publication and cache data for binary package is truly difficult. I think we want to make that easier in the future, but for now, using sample data to close an oops is the best thing.
You can land your branch after you address my style concern below.
> === modified file 'lib/lp/ registry/ tests/test_ sourcepackage. py' registry/ tests/test_ sourcepackage. py 2010-08-03 15:28:48 +0000 registry/ tests/test_ sourcepackage. py 2010-08-04 14:23:49 +0000 get_default_ archive) package_ summary_ no_releases_ returns_ None(self) : makeSourcePacka ge() l(sourcepackage .summary, None) package_ summary_ with_releases_ returns_ None(self) : makeSourcePacka ge() makeSourcePacka geRelease( me=sourcepackag e.sourcepackage name) l(sourcepackage .summary, None) package_ summary_ with_binaries_ returns_ list(self) : rities) .ubuntu[ 'warty' ].getSourcePack age( nmozilla- firefox- data: No summary available for \ firefox- data in ubuntu warty.' l(expected_ summary, sp.summary)
> --- lib/lp/
> +++ lib/lp/
> @@ -226,6 +226,25 @@
> self.assertRaises(
> NoPartnerArchive, sourcepackage.
>
> + def test_source_
> + sourcepackage = self.factory.
> + self.assertEqua
> +
> + def test_source_
> + sourcepackage = self.factory.
> + self.factory.
> + sourcepackagena
> + self.assertEqua
> +
> + def test_source_
> + sp = getUtility(
> + ILaunchpadCeleb
> + 'mozilla-firefox')
> + expected_summary = u'mozilla-firefox: Mozilla Firefox \
> +Web Browser\
> +mozilla-
> + self.assertEqua
> +
This form of wrapping is hard to read we use () to work with long strings
expected_ summary = (
u' mozilla- firefox: Mozilla Firefox Web Browser\n'
u' mozilla- firefox- data: No summary available for '
u' mozilla- firefox- data in ubuntu warty.')
and we take advantage of string concatenation rules. We want to see preserve
indentation so that the code is easy to scan. In general, we avoid
the use of \ because you have to read the ending of a line to know what is
happening on another. We avoid end comments for the same reason. I think
format works: