~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/testing/ftests/test_layers.py

  • Committer: Gary Poster
  • Date: 2011-09-20 22:33:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14015.
  • Revision ID: gary.poster@canonical.com-20110920223307-zt1kr1px2ixjg9mn
Add yui xhr integration test support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
546
546
    def test_stopAppServer(self):
547
547
        # Test that stopping the app server kills the process and remove the
548
548
        # PID file.
549
 
        LayerProcessController._setConfig()
 
549
        LayerProcessController.setConfig()
550
550
        LayerProcessController.startAppServer()
551
551
        pid = LayerProcessController.appserver.pid
552
552
        pid_file = pidfile_path('launchpad',
560
560
    def test_postTestInvariants(self):
561
561
        # A LayerIsolationError should be raised if the app server dies in the
562
562
        # middle of a test.
563
 
        LayerProcessController._setConfig()
 
563
        LayerProcessController.setConfig()
564
564
        LayerProcessController.startAppServer()
565
565
        pid = LayerProcessController.appserver.pid
566
566
        os.kill(pid, signal.SIGTERM)
570
570
 
571
571
    def test_postTestInvariants_dbIsReset(self):
572
572
        # The database should be reset by the test invariants.
573
 
        LayerProcessController._setConfig()
 
573
        LayerProcessController.setConfig()
574
574
        LayerProcessController.startAppServer()
575
575
        LayerProcessController.postTestInvariants()
576
576
        # XXX: Robert Collins 2010-10-17 bug=661967 - this isn't a reset, its
577
577
        # a flag that it *needs* a reset, which is actually quite different;
578
 
        # the lack of a teardown will leak daabases.
 
578
        # the lack of a teardown will leak databases.
579
579
        self.assertEquals(True, LaunchpadTestSetup()._reset_db)
580
580
 
581
581