~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/tests/test_layers_functional.py

Merged fix-retest-colorize into redo-read-only-transactions-in-buildmaster, resolving several import conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    getUtility,
32
32
    )
33
33
 
34
 
from canonical.config import config
35
 
from canonical.lazr.pidfile import pidfile_path
36
 
from canonical.librarian.client import (
 
34
from lp.services.config import config
 
35
from lp.services.librarian.client import (
37
36
    LibrarianClient,
38
37
    UploadFailed,
39
38
    )
40
 
from canonical.librarian.interfaces import ILibrarianClient
41
 
from canonical.testing.layers import (
 
39
from lp.services.librarian.interfaces.client import ILibrarianClient
 
40
from lp.services.memcache.client import memcache_client_factory
 
41
from lp.services.pidfile import pidfile_path
 
42
from lp.testing.layers import (
42
43
    AppServerLayer,
43
44
    BaseLayer,
44
45
    DatabaseLayer,
56
57
    RabbitMQLayer,
57
58
    ZopelessLayer,
58
59
    )
59
 
from lp.services.memcache.client import memcache_client_factory
60
60
 
61
61
 
62
62
class BaseLayerIsolator(Fixture):
254
254
        cur.execute("SELECT id FROM Person LIMIT 1")
255
255
        self.assertNotEqual(None, cur.fetchone())
256
256
 
257
 
    def testMemcachedWorking(self):
 
257
    def xxxtestMemcachedWorking(self):
 
258
        # XXX sinzui 2011-12-27 bug=729062: Disabled because lucid_db_lp
 
259
        # reports memcached did not die.(self):
258
260
        client = MemcachedLayer.client or memcache_client_factory()
259
261
        key = "BaseTestCase.testMemcachedWorking"
260
262
        client.forget_dead_hosts()
569
571
        self.failUnlessEqual(
570
572
                BaseLayer.test_name,
571
573
                "testTestName "
572
 
                "(canonical.testing.ftests.test_layers.TestNameTestCase)")
 
574
                "(lp.testing.tests.test_layers_functional.TestNameTestCase)")