~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_branch.py

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
327
327
        branch.nick = u"\u1234"
328
328
        self.assertEqual(branch.nick, u"\u1234")
329
329
 
330
 
    def test_commit_nicks(self):
331
 
        """Nicknames are committed to the revision"""
332
 
        get_transport(self.get_url()).mkdir('bzr.dev')
333
 
        wt = self.make_branch_and_tree('bzr.dev')
334
 
        branch = wt.branch
335
 
        branch.nick = "My happy branch"
336
 
        wt.commit('My commit respect da nick.')
337
 
        committed = branch.repository.get_revision(branch.last_revision())
338
 
        self.assertEqual(committed.properties["branch-nick"], 
339
 
                         "My happy branch")
340
 
 
341
330
    def test_create_open_branch_uses_repository(self):
342
331
        try:
343
332
            repo = self.make_repository('.', shared=True)