~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin
  • Date: 2011-04-15 21:22:57 UTC
  • mto: This revision was merged to the branch mainline in revision 5797.
  • Revision ID: gzlist@googlemail.com-20110415212257-jgtovwwp4be7egd9
Add release notes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
47
47
        self.assertIsDirectory('.bzr/checkout', t)
48
48
        self.assertIsDirectory('.bzr/checkout/lock', t)
49
49
 
50
 
    def test_init_weave(self):
51
 
        # --format=weave should be accepted to allow interoperation with
52
 
        # old releases when desired.
53
 
        out, err = self.run_bzr('init --format=weave')
54
 
        self.assertEqual("""Created a standalone tree (format: weave)\n""",
55
 
            out)
56
 
        self.assertEqual('', err)
57
 
 
58
50
    def test_init_format_2a(self):
59
51
        """Smoke test for constructing a format 2a repoistory."""
60
52
        out, err = self.run_bzr('init --format=2a')
226
218
        # and uses whoami only in a lock file. Without whoami the login name
227
219
        # is used. This test is to ensure that init passes even when whoami
228
220
        # is not available.
229
 
        osutils.set_or_unset_env('EMAIL', None)
230
 
        osutils.set_or_unset_env('BZR_EMAIL', None)
 
221
        self.overrideEnv('EMAIL', None)
 
222
        self.overrideEnv('BZR_EMAIL', None)
231
223
        out, err = self.run_bzr(['init', 'foo'])
232
224
        self.assertEqual(err, '')
233
225
        self.assertTrue(os.path.exists('foo'))
234
 
        
 
226