What does this demonstrate? Is that a link to the librarian? If so can
you add a comment explaining what it is.
I'm a little bit worried that this test is fragile, after reading some
of the discussions on launchpad-dev about just-in-time configuration
of the librarian, amongst other things. Maybe I got the wrong end of
the stick. Anyway, it seems to me that it's enough just to show that
parent_package_diff_url is not None.
On that note, assertIs(None, ...) and assertIsNot(None, ...) might be
more appropriate for testing against None, but I don't think it
actually matters. Ah, I see you've used it later.
Looks great :)
Three fairly trivial comments.
+1
[1]
+ def test_package_ diffs(self) : makeDistroSerie sDifference( ) roxy(ds_ diff) package_ diff = self.factory. makePackageDiff ( PackageDiffStat us.PENDING) parent_ package_ diff = self.factory. makePackageDiff () self.factory. makeLaunchpadSe rvice( l(None, ws_diff. package_ diff_url) (ws_diff. parent_ package_ diff_url. startswith( localhost: 58000/'))
+ # The package diff urls exposed.
+ ds_diff = self.factory.
+ naked_dsdiff = removeSecurityP
+ naked_dsdiff.
+ status=
+ naked_dsdiff.
+
+ ws_diff = ws_object(
+ ds_diff.owner), ds_diff)
+
+ self.assertEqua
+ self.assertTrue
+ 'http://
What does this demonstrate? Is that a link to the librarian? If so can
you add a comment explaining what it is.
I'm a little bit worried that this test is fragile, after reading some package_ diff_url is not None.
of the discussions on launchpad-dev about just-in-time configuration
of the librarian, amongst other things. Maybe I got the wrong end of
the stick. Anyway, it seems to me that it's enough just to show that
parent_
On that note, assertIs(None, ...) and assertIsNot(None, ...) might be
more appropriate for testing against None, but I don't think it
actually matters. Ah, I see you've used it later.
[2]
+ pubs = self.derived_ series. getPublishedSou rces( package_ name, version= self.base_ version, pending= True)
+ self.source_
+ include_
+ return pubs[0]
Could getPublishedSou rces() ever return an empty list?
[3]
+ base_version = versions. get('base' )
+ if base_version:
s/:/ is not None:/