~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2011-04-08 12:28:05 UTC
  • mfrom: (5771 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5775.
  • Revision ID: john@arbash-meinel.com-20110408122805-qdo9uc2dtc9mzoic
Merge bzr 5771, make sure to have the latest create-file changes, etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
                          'recommended.\n', display)
95
95
 
96
96
    def test_whoami_not_set(self):
97
 
        """Ensure whoami error if username is not set.
 
97
        """Ensure whoami error if username is not set and not inferred.
98
98
        """
99
99
        self.overrideEnv('EMAIL', None)
100
100
        self.overrideEnv('BZR_EMAIL', None)
 
101
        # Also, make sure that it's not inferred from mailname.
 
102
        self.overrideAttr(config, '_auto_user_id',
 
103
            lambda: (None, None))
101
104
        out, err = self.run_bzr(['whoami'], 3)
102
105
        self.assertContainsRe(err, 'Unable to determine your name')
103
106