~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/launchpad_loggerhead/tests.py

  • Committer: William Grant
  • Date: 2012-01-01 03:03:28 UTC
  • mto: This revision was merged to the branch mainline in revision 14614.
  • Revision ID: william.grant@canonical.com-20120101030328-xtkp6ob1q8h40sxw
Format the non-contrib bits of lib.

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