/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_shared_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
 
21
 
from bzrlib.bzrdir import BzrDirMetaFormat1
22
 
from bzrlib.controldir import ControlDir
23
 
import bzrlib.errors as errors
24
 
from bzrlib.tests import TestCaseInTempDir
25
 
from bzrlib.tests.matchers import ContainsNoVfsCalls
 
21
from breezy.bzrdir import BzrDirMetaFormat1
 
22
from breezy.controldir import ControlDir
 
23
import breezy.errors as errors
 
24
from breezy.tests import TestCaseInTempDir
 
25
from breezy.tests.matchers import ContainsNoVfsCalls
26
26
 
27
27
 
28
28
class TestSharedRepo(TestCaseInTempDir):
154
154
    def test_init_repo_without_username(self):
155
155
        """Ensure init-repo works if username is not set.
156
156
        """
157
 
        # bzr makes user specified whoami mandatory for operations
 
157
        # brz makes user specified whoami mandatory for operations
158
158
        # like commit as whoami is recorded. init-repo however is not so final
159
159
        # and uses whoami only in a lock file. Without whoami the login name
160
160
        # is used. This test is to ensure that init-repo passes even when whoami
161
161
        # is not available.
162
162
        self.overrideEnv('EMAIL', None)
163
 
        self.overrideEnv('BZR_EMAIL', None)
 
163
        self.overrideEnv('BRZ_EMAIL', None)
164
164
        out, err = self.run_bzr(['init-repo', 'foo'])
165
165
        self.assertEqual(err, '')
166
166
        self.assertTrue(os.path.exists('foo'))