~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/interfaces/tests/test_branch.py

  • Committer: Colin Watson
  • Date: 2011-08-19 00:25:11 UTC
  • mfrom: (7675.1045.728 db-devel)
  • mto: This revision was merged to the branch mainline in revision 13909.
  • Revision ID: cjwatson@canonical.com-20110819002511-0x8hrqs1ckiqk53g
merge db-devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
__metaclass__ = type
7
7
 
8
 
from unittest import TestLoader
 
8
import lp.codehosting # For plugins
9
9
 
10
 
from bzrlib.branch import BranchFormat as BzrBranchFormat
 
10
from bzrlib.branch import (
 
11
    format_registry as branch_format_registry,
 
12
    )
11
13
from bzrlib.bzrdir import BzrProber
12
14
from bzrlib.repository import format_registry as repo_format_registry
13
15
 
28
30
    """
29
31
 
30
32
    def test_control_format_complement(self):
31
 
        self.bzrlib_is_subset(BzrProber._formats.keys(), ControlFormat)
 
33
        self.bzrlib_is_subset(BzrProber.formats.keys(), ControlFormat)
32
34
 
33
35
    def test_branch_format_complement(self):
34
 
        self.bzrlib_is_subset(BzrBranchFormat._formats.keys(), BranchFormat)
 
36
        self.bzrlib_is_subset(branch_format_registry.keys(), BranchFormat)
35
37
 
36
38
    def test_repository_format_complement(self):
37
39
        self.bzrlib_is_subset(repo_format_registry.keys(), RepositoryFormat)
60
62
                description = description[:-1]
61
63
            self.assertTrue(len(description.split('\n')) == 1,
62
64
                            item.description)
63
 
 
64
 
 
65
 
def test_suite():
66
 
    return TestLoader().loadTestsFromName(__name__)