~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:09:12 UTC
  • mfrom: (14600.1.12 apocalypta-1)
  • mto: This revision was merged to the branch mainline in revision 14602.
  • Revision ID: curtis.hovey@canonical.com-20111224170912-e1h1863jnphaqt81
merged apocalypta.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
Or by any of its URLs (HTTP, FTP or Rsync)
159
159
First we'll have to add some of this URLs to sample data:
160
160
 
161
 
    >>> from canonical.launchpad.ftests import login
 
161
    >>> from lp.testing import login
162
162
    >>> login("mark@example.com")
163
163
    >>> example_mirror.ftp_base_url = 'ftp://localhost/example-ftp'
164
164
    >>> example_mirror.rsync_base_url = 'rsync://localhost/example-rsync'
369
369
    ...
370
370
 
371
371
    # Enable the mirror again.
372
 
    >>> from canonical.launchpad.ftests import login
 
372
    >>> from lp.testing import login
373
373
    >>> valid_mirror.enabled = True
374
374
 
375
375
If we pass notify_owner=False to the disable() method, then we'll send a