~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2009-06-19 09:06:56 UTC
  • mfrom: (4463 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4464.
  • Revision ID: mbp@sourcefrog.net-20090619090656-d5weqeecyscv8kqp
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 2009 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
49
49
            out)
50
50
        self.assertEqual('', err)
51
51
 
 
52
    def test_init_format_2a(self):
 
53
        """Smoke test for constructing a format 2a repoistory."""
 
54
        out, err = self.run_bzr('init --format=2a')
 
55
        self.assertEqual("""Created a standalone tree (format: 2a)\n""",
 
56
            out)
 
57
        self.assertEqual('', err)
 
58
 
52
59
    def test_init_at_repository_root(self):
53
60
        # bzr init at the root of a repository should create a branch
54
61
        # and working tree even when creation of working trees is disabled.