~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/commands/test_init_repository.py

  • Committer: Martin Pool
  • Date: 2009-03-24 05:21:02 UTC
  • mfrom: (4192 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4202.
  • Revision ID: mbp@sourcefrog.net-20090324052102-8kk087b32tep3d9h
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
 
 
18
from bzrlib import tests
18
19
from bzrlib.builtins import cmd_init_repository
19
20
from bzrlib.tests.transport_util import TestCaseWithConnectionHookedTransport
20
21
 
27
28
 
28
29
    def test_init_repository(self):
29
30
        cmd = cmd_init_repository()
 
31
        # We don't care about the ouput but 'outf' should be defined
 
32
        cmd.outf = tests.StringIOWrapper()
30
33
        cmd.run(self.get_url())
31
34
        self.assertEquals(1, len(self.connections))
32
35