~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/tests/milestone-views.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:
11
11
The default url for a milestone is to the main site.
12
12
 
13
13
    >>> from lp.testing import test_tales
14
 
    >>> from canonical.launchpad.webapp.servers import LaunchpadTestRequest
 
14
    >>> from lp.services.webapp.servers import LaunchpadTestRequest
15
15
 
16
16
    >>> request = LaunchpadTestRequest(SERVER_URL='http://bugs.launchpad.net')
17
17
    >>> login(ANONYMOUS, request)
37
37
The MilestoneView used can be adapted to a MilestoneInlineNavigationMenu
38
38
for use with inline presentation of milestones.
39
39
 
40
 
    >>> from canonical.launchpad.webapp.interfaces import INavigationMenu
 
40
    >>> from lp.services.webapp.interfaces import INavigationMenu
41
41
    >>> from canonical.lazr.canonicalurl import nearest_adapter
42
42
 
43
43
    >>> view = create_view(milestone, name='+productseries-table-row')
328
328
The MilestoneEditView is responsible for controlling the fields that the
329
329
user may edit.
330
330
 
331
 
    >>> from canonical.launchpad.webapp.authorization import check_permission
 
331
    >>> from lp.services.webapp.authorization import check_permission
332
332
    >>> from lp.registry.interfaces.product import IProductSet
333
333
 
334
334
    >>> firefox = getUtility(IProductSet).getByName('firefox')