~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/commands/test_commit.py

(GaryvdM) Make it possible to detect a BoundBranchOutOfDate from
        commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        # commit do not provide a directory parameter, we have to change dir
54
54
        # manually
55
55
        os.chdir('local')
56
 
        # cmd_commit translates BoundBranchOutOfDate into BzrCommandError
57
 
        self.assertRaises(errors.BzrCommandError, commit.run,
 
56
        self.assertRaises(errors.BoundBranchOutOfDate, commit.run,
58
57
                          message=u'empty commit', unchanged=True)
59
58
        self.assertEquals(1, len(self.connections))
60
59