~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/doc/webapp-publication.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-29 01:49:37 UTC
  • mfrom: (13316.3.4 syncUpdate-huh)
  • Revision ID: launchpad@pqm.canonical.com-20110629014937-h26dx50bi1s1jz6q
[r=jml][no-qa] Remove syncUpdate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
906
906
be automatically reverted in a GET request.
907
907
 
908
908
    >>> from canonical.launchpad.database.emailaddress import EmailAddress
909
 
    >>> from canonical.launchpad.ftests import syncUpdate
910
909
    >>> from canonical.launchpad.interfaces.lpstorm import IMasterStore
911
910
    >>> from lp.registry.model.person import Person
912
911
    >>> login('foo.bar@canonical.com')
920
919
    >>> print foo_bar.homepage_content
921
920
    None
922
921
    >>> foo_bar.homepage_content = 'Montreal'
923
 
    >>> syncUpdate(foo_bar)
924
922
 
925
923
    >>> request, publication = get_request_and_publication(method='GET')
926
924
 
939
937
 
940
938
    >>> txn = transaction.begin()
941
939
    >>> get_foo_bar_person().homepage_content = 'Darwin'
942
 
    >>> syncUpdate(foo_bar)
943
940
 
944
941
    >>> request, publication = get_request_and_publication(method='POST')
945
942
 
1195
1192
    >>> import pytz
1196
1193
    >>> now = datetime.now(pytz.timezone('UTC'))
1197
1194
    >>> access_token.date_expires = now - timedelta(days=1)
1198
 
    >>> syncUpdate(access_token)
1199
1195
    >>> form2 = form.copy()
1200
1196
    >>> form2['oauth_nonce'] = '1764572616e48616d6d65724c61686'
1201
1197
    >>> test_request = LaunchpadTestRequest(form=form2)
1205
1201
    TokenException: Expired token...
1206
1202
 
1207
1203
    >>> access_token.date_expires = now + timedelta(days=1)
1208
 
    >>> syncUpdate(access_token)
1209
1204
 
1210
1205
    >>> form2 = form.copy()
1211
1206
    >>> form2['oauth_token'] += 'z'