~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-01-30 21:12:30 UTC
  • mfrom: (2245.1.3 branch-hook)
  • Revision ID: pqm@pqm.ubuntu.com-20070130211230-64c2d9b4bce9304f
(robertc) Add Branch hooks faciity, allowing clean creation and management of hooks around branch API calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
            "the current request that is open.",
95
95
            str(error))
96
96
 
 
97
    def test_unknown_hook(self):
 
98
        error = errors.UnknownHook("branch", "foo")
 
99
        self.assertEqualDiff("The branch hook 'foo' is unknown in this version"
 
100
            " of bzrlib.",
 
101
            str(error))
 
102
        error = errors.UnknownHook("tree", "bar")
 
103
        self.assertEqualDiff("The tree hook 'bar' is unknown in this version"
 
104
            " of bzrlib.",
 
105
            str(error))
 
106
 
97
107
    def test_up_to_date(self):
98
108
        error = errors.UpToDateFormat(bzrdir.BzrDirFormat4())
99
109
        self.assertEqualDiff("The branch format Bazaar-NG branch, "