/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-06-04 05:59:55 UTC
  • mfrom: (5279.1.1 lazy-import-merge)
  • Revision ID: pqm@pqm.ubuntu.com-20100604055955-98pfcy1bn8oz7749
(spiv) Use lazy imports in bzrilb.merge to minimise the startup cost of
 plugins like news_merge. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import os
21
21
 
22
22
import bzrlib
 
23
from bzrlib import osutils
23
24
from bzrlib.branch import Branch
24
25
from bzrlib.tests.blackbox import ExternalBase
25
26
 
111
112
        self.assertEquals('"Branch Identity" does not seem to contain an '
112
113
                          'email address.  This is allowed, but not '
113
114
                          'recommended.\n', display)
 
115
 
 
116
    def test_whoami_not_set(self):
 
117
        """Ensure whoami error if username is not set.
 
118
        """
 
119
        osutils.set_or_unset_env('EMAIL', None)
 
120
        osutils.set_or_unset_env('BZR_EMAIL', None)
 
121
        out, err = self.run_bzr(['whoami'], 3)
 
122
        self.assertContainsRe(err, 'Unable to determine your name')