~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/tests/test_lp_client_integration.py.disabled

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-05 01:16:46 UTC
  • mfrom: (14628.1.2 js-client-link)
  • Revision ID: launchpad@pqm.canonical.com-20120105011646-dlhd7oqm9pui6yk1
[r=benji][bug=911973] Set lp_original_uri properly for objects
        returned by named_get and named_post that have a self_link.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
__metaclass__ = type
8
8
__all__ = []
9
9
 
 
10
from zope.traversing.browser import absoluteURL
 
11
from lazr.restful.interfaces import IWebServiceClientRequest
 
12
 
10
13
from lp.testing import person_logged_in
11
14
from lp.testing.yuixhr import (
12
15
    login_as_person,
38
41
def create_product_and_login(request, data):
39
42
    login_as_person(data['user'])
40
43
 
 
44
@create_product_and_login.extend
 
45
def create_product_with_milestone_and_login(request, data):
 
46
    data['milestone'] = factory.makeMilestone(
 
47
        product=data['product'])
 
48
    api_request = IWebServiceClientRequest(request)
 
49
    data['milestone_self_link'] = absoluteURL(data['milestone'], api_request)
41
50
 
42
51
@create_product_and_login.extend
43
52
def create_bug_and_login(request, data):