~launchpad-pqm/bzr-svn/devel

« back to all changes in this revision

Viewing changes to tests/layout/test_standard.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-02-01 22:22:18 UTC
  • mfrom: (2722.1.1 lp-pqm)
  • Revision ID: launchpad@pqm.canonical.com-20120201222218-sqio0a5sc335w294
[rs=jelmer] Update to r4162.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        self.layout = RootLayout()
57
57
 
58
58
    def test_get_branch_path_default(self):
59
 
        self.assertEquals("", self.layout.get_branch_path(None))
 
59
        self.assertEquals("", self.layout.get_branch_path(""))
60
60
        self.assertRaises(NoCustomBranchPaths,
61
61
            self.layout.get_branch_path, None, "proh")
62
62
 
74
74
        self.layout = TrunkLayout()
75
75
 
76
76
    def test_get_branch_path_default(self):
77
 
        self.assertEquals("trunk", self.layout.get_branch_path(None))
 
77
        self.assertEquals("trunk", self.layout.get_branch_path(""))
78
78
        self.assertEquals("myproj/trunk",
79
 
            self.layout.get_branch_path(None, "myproj"))
 
79
            self.layout.get_branch_path("", "myproj"))
80
80
 
81
81
    def test_get_branch_path_somepath(self):
82
82
        self.assertEquals("branches/abranch",
87
87
    def test_get_branch_name(self):
88
88
        self.assertEquals("abranch",
89
89
            self.layout.get_branch_name("branches/abranch"))
90
 
        self.assertEquals(None,
 
90
        self.assertEquals("",
91
91
            self.layout.get_branch_name("trunk"))
92
92
 
93
93
    def test_is_branch_parent(self):