~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/launchpad_loggerhead/tests.py

  • 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:
4
4
import cStringIO
5
5
import errno
6
6
import logging
 
7
import urllib
 
8
import socket
7
9
import re
8
 
import socket
9
 
import urllib
10
10
 
11
11
import lazr.uri
 
12
import wsgi_intercept
 
13
from wsgi_intercept.urllib2_intercept import install_opener, uninstall_opener
 
14
import wsgi_intercept.zope_testbrowser
12
15
from paste import httpserver
13
16
from paste.httpexceptions import HTTPExceptionHandler
14
 
import wsgi_intercept
15
 
from wsgi_intercept.urllib2_intercept import (
16
 
    install_opener,
17
 
    uninstall_opener,
 
17
import zope.event
 
18
 
 
19
from canonical.config import config
 
20
from lp.services.webapp.vhosts import allvhosts
 
21
from canonical.testing.layers import DatabaseFunctionalLayer
 
22
from launchpad_loggerhead.app import (
 
23
    RootApp,
18
24
    )
19
 
import wsgi_intercept.zope_testbrowser
20
 
import zope.event
21
 
 
22
 
from launchpad_loggerhead.app import RootApp
23
25
from launchpad_loggerhead.session import SessionHandler
24
 
from lp.services.config import config
25
 
from lp.services.webapp.vhosts import allvhosts
26
26
from lp.testing import TestCase
27
 
from lp.testing.layers import DatabaseFunctionalLayer
28
 
 
29
27
 
30
28
SESSION_VAR = 'lh.session'
31
29