~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/doc/package-diff.txt

  • Committer: Curtis Hovey
  • Date: 2011-12-24 17:49:30 UTC
  • mto: This revision was merged to the branch mainline in revision 14602.
  • Revision ID: curtis.hovey@canonical.com-20111224174930-xk1d5cvhyxq46ctf
Moved webapp to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
Let's inspect the PackageDiff record created.
35
35
 
36
 
    >>> from canonical.launchpad.webapp.testing import verifyObject
 
36
    >>> from lp.services.webapp.testing import verifyObject
37
37
    >>> from lp.soyuz.interfaces.packagediff import IPackageDiff
38
38
 
39
39
    >>> verifyObject(IPackageDiff, package_diff)
377
377
to decompress the file and display it inline, which makes it easier
378
378
for users to view it.
379
379
 
380
 
    >>> from canonical.launchpad.webapp.url import urlparse
 
380
    >>> from lp.services.webapp.url import urlparse
381
381
    >>> parsed_url = urlparse(diff.diff_content.http_url)
382
382
    >>> netloc, path = parsed_url[1:3]
383
383