~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-21 04:49:05 UTC
  • mfrom: (2367.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070321044905-ded01a80ab49bdd9
Update NEWS to match bzr 0.15.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
        BranchFormat.unregister_format(format)
176
176
        self.make_branch_and_tree('bar')
177
177
 
 
178
    def test_checkout_format(self):
 
179
        branch = self.make_repository('repository', shared=True)
 
180
        branch = self.make_branch('repository/branch',
 
181
            format='metaweave')
 
182
        tree = branch.create_checkout('checkout')
 
183
        self.assertIs(tree.branch.__class__, _mod_branch.BzrBranch5)
 
184
 
178
185
 
179
186
class TestBranch6(TestCaseWithTransport):
180
187
 
313
320
    def test_installed_hooks_are_BranchHooks(self):
314
321
        """The installed hooks object should be a BranchHooks."""
315
322
        # the installed hooks are saved in self._preserved_hooks.
316
 
        self.assertIsInstance(self._preserved_hooks[_mod_branch.Branch], BranchHooks)
 
323
        self.assertIsInstance(self._preserved_hooks, BranchHooks)
317
324
 
318
325
    def test_install_hook_raises_unknown_hook(self):
319
326
        """install_hook should raise UnknownHook if a hook is unknown."""