~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_whoami.py

  • Committer: Vincent Ladeuil
  • Date: 2012-01-09 20:55:07 UTC
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120109205507-2i3en5r4w4ohdchj
Use idioms coherently and add comments to make their purpose clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                          '--directory', 'subdir')
120
120
        self.run_bzr(['whoami', '--directory', 'subdir', '--branch',
121
121
                      'Changed Identity <changed@identi.ty>'])
122
 
        c = branch.Branch.open('subdir').get_config_stack()
 
122
        # Refresh wt as 'whoami' modified it
 
123
        wt = wt.bzrdir.open_workingtree()
 
124
        c = wt.branch.get_config_stack()
123
125
        self.assertEquals('Changed Identity <changed@identi.ty>',
124
126
                          c.get('email'))
125
127