/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

MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Black-box tests for bzr whoami."""
19
19
 
20
 
import os
21
 
 
22
20
import bzrlib
23
21
from bzrlib import (
24
 
    osutils,
25
22
    config,
26
23
    )
27
24
from bzrlib.tests import TestCaseWithTransport
39
36
        self.assertTrue(len(out) > 0)
40
37
        self.assertEquals(1, out.count('@'))
41
38
 
 
39
    def test_whoami_email_arg(self):
 
40
        # whoami --email is mutually exclusive with any arguments
 
41
        out = self.run_bzr("whoami --email 'foo <foo@example.com>'", 3)[0]
 
42
        self.assertEquals("", out)
 
43
 
42
44
    def test_whoami_branch(self):
43
45
        """branch specific user identity works."""
44
46
        wt = self.make_branch_and_tree('.')