154
154
def test_init_repo_without_username(self):
155
155
"""Ensure init-repo works if username is not set.
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
162
162
self.overrideEnv('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'))