~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/distribution-mirror.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:
146
146
 
147
147
It's possible to retrieve a mirror by its name:
148
148
 
149
 
    >>> from canonical.launchpad.webapp.testing import verifyObject
 
149
    >>> from lp.services.webapp.testing import verifyObject
150
150
    >>> from lp.registry.interfaces.distributionmirror import IDistributionMirror
151
151
    >>> example_mirror = mirrorset.getByName('archive-mirror')
152
152
    >>> verifyObject(IDistributionMirror, example_mirror)
800
800
  >>> from zope.component import getMultiAdapter
801
801
  >>> from lp.registry.browser.distribution import (
802
802
  ...     DistributionMirrorsView)
803
 
  >>> from canonical.launchpad.webapp.servers import LaunchpadTestRequest
 
803
  >>> from lp.services.webapp.servers import LaunchpadTestRequest
804
804
 
805
805
Create a view to test:
806
806