~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Parth Malwankar
  • Date: 2010-05-05 14:02:53 UTC
  • mto: This revision was merged to the branch mainline in revision 5213.
  • Revision ID: parth.malwankar@gmail.com-20100505140253-fqdiwllq4o4htbsg
added comment to init/init-repo pass tests for lacking whoami.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
    def test_init_without_username(self):
207
207
        """Ensure init works if username is not set.
208
208
        """
 
209
        # bzr makes user specified whoami mandatory for operations
 
210
        # like commit as whoami is recorded. init however is not so final
 
211
        # and uses whoami only in a lock file. Without whoami the login name
 
212
        # is used. This test is to ensure that init passes even when whoami
 
213
        # is not available.
209
214
        osutils.set_or_unset_env('EMAIL', None)
210
215
        osutils.set_or_unset_env('BZR_EMAIL', None)
211
216
        out, err = self.run_bzr(['init', 'foo'])