~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/archivepublisher/tests/test_config.py.disabled

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2005-06-21 15:50:13 UTC
  • mfrom: (unknown (missing))
  • Revision ID: Arch-1:rocketfuel@canonical.com%launchpad--devel--0--patch-1902
Merge in publishing work from soyuz sprint. r=jamesh
Patches applied:

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-29
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-30
   Merge from laptop publisher archive

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-31
   Merge db blessing from Stuart

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-32
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-33
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-34
   replay laptop branch changes in

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-35
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-36
   Sync-tree with laptop branch

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-37
   Unpublish death row

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-38
   Final bits from jamesh's review

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-39
   [trivial] Quick fix to the sampledata to match priorities

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-40
   Disable dominator test because it is completely wrong

 * daniel.silverstone@canonical.com--desktop/launchpad--publishing--0--patch-41
   oops, disable the tests cleanly this time

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-13
   Merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-14
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-15
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-16
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-17
   Dehumanise the archive publisher

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-18
   Add the archtag info for the archive publisher

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-19
   initial publishing implementation

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-20
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-21
   star-merge from rocketfuel@canonical.com/launchpad--devel--0

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-22
   Merge stuart's blessing

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-23
   Review response for jamesh

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-24
   Hopefully the last of the dominator fixes

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-25
   dbschema.items is iterable sanely

 * daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-26
   Change patch-17-19 to patch-17-27 as per instructions from stub

 * stuart.bishop@canonical.com/launchpad-kinnison--4--base-0
   tag of daniel.silverstone@canonical.com--laptop/launchpad--publishing--0--patch-19

 * stuart.bishop@canonical.com/launchpad-kinnison--4--patch-1
   format patch, migrate to final home and add indexes

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
import os
9
9
import shutil
10
10
 
11
 
from canonical.lucille.tests.util import dist, drs
 
11
from canonical.archivepublisher.tests.util import dist, drs
12
12
     
13
13
class TestConfig(unittest.TestCase):
14
14
 
15
15
    def testImport(self):
16
 
        """canonical.lucille.Config should be importable"""
17
 
        from canonical.lucille import Config
 
16
        """canonical.archivepublisher.Config should be importable"""
 
17
        from canonical.archivepublisher import Config
18
18
 
19
19
    def testInstantiate(self):
20
 
        """canonical.lucille.Config should instantiate"""
21
 
        from canonical.lucille import Config
 
20
        """canonical.archivepublisher.Config should instantiate"""
 
21
        from canonical.archivepublisher import Config
22
22
        d = Config(dist, drs)
23
23
 
24
24
    def testDistroName(self):
25
 
        """canonical.lucille.Config should be able to return the distroName"""
26
 
        from canonical.lucille import Config
 
25
        """canonical.archivepublisher.Config should be able to return the distroName"""
 
26
        from canonical.archivepublisher import Config
27
27
        d = Config(dist, drs)
28
28
        self.assertEqual( d.distroName, "ubuntu" )
29
29
 
30
30
    def testDistroReleaseNames(self):
31
 
        """canonical.lucille.Config should return two distrorelease names"""
32
 
        from canonical.lucille import Config
 
31
        """canonical.archivepublisher.Config should return two distrorelease names"""
 
32
        from canonical.archivepublisher import Config
33
33
        d = Config(dist, drs)
34
34
        drns = d.distroReleaseNames()
35
35
        self.assertEquals( len(drns), 2 )
41
41
            self.assertEquals( drns[1], "hoary" )
42
42
 
43
43
    def testArchTagsForRelease(self):
44
 
        """canonical.lucille.Config should have the arch tags for the drs"""
45
 
        from canonical.lucille import Config
 
44
        """canonical.archivepublisher.Config should have the arch tags for the drs"""
 
45
        from canonical.archivepublisher import Config
46
46
        d = Config(dist, drs)
47
47
        archs = d.archTagsForRelease( "hoary" )
48
48
        self.assertEquals( len(archs), 2 )
49
49
 
50
50
    def testDistroConfig(self):
51
 
        """canonical.lucille.Config should have parsed a distro config"""
52
 
        from canonical.lucille import Config
 
51
        """canonical.archivepublisher.Config should have parsed a distro config"""
 
52
        from canonical.archivepublisher import Config
53
53
        d = Config(dist, drs)
54
54
        # NOTE: Add checks here when you add stuff in util.py
55
55
        self.assertEquals( d.stayofexecution, 5 )