~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/oauth/tests/test_oauth.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-09 04:02:31 UTC
  • mfrom: (14452.3.5 oauthpocalypse)
  • Revision ID: launchpad@pqm.canonical.com-20111209040231-87rrs6957y4jukaj
[r=wgrant][no-qa] Move OAuth code and tests from various places in
        canonical.launchpad to lp.services.oauth.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
from storm.zope.interfaces import IZStorm
12
12
from zope.component import getUtility
13
13
 
14
 
from canonical.launchpad.database.oauth import (
 
14
from canonical.launchpad.webapp.interfaces import (
 
15
    MAIN_STORE,
 
16
    MASTER_FLAVOR,
 
17
    )
 
18
from canonical.testing.layers import DatabaseFunctionalLayer
 
19
from lp.services.oauth.model import (
15
20
    OAuthAccessToken,
16
21
    OAuthConsumer,
17
22
    OAuthNonce,
18
23
    OAuthRequestToken,
19
24
    )
20
 
from canonical.launchpad.webapp.interfaces import (
21
 
    MAIN_STORE,
22
 
    MASTER_FLAVOR,
23
 
    )
24
 
from canonical.testing.layers import DatabaseFunctionalLayer
25
25
 
26
26
 
27
27
class BaseOAuthTestCase(unittest.TestCase):