/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2010-02-09 20:49:50 UTC
  • mto: (5029.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5030.
  • Revision ID: v.ladeuil+lp@free.fr-20100209204950-p86omh9xnn0w124a
selftest -s bt.test_bzrdir passing

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2007 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
22
22
    )
23
23
from bzrlib.tests import (
24
24
    features,
 
25
    stub_sftp,
25
26
    )
26
 
from bzrlib.transport import memory
 
27
 
27
28
 
28
29
class SelfTestPatch:
29
30
 
74
75
        # Test that we can pass a transport to the selftest core - sftp
75
76
        # version.
76
77
        self.requireFeature(features.paramiko)
77
 
        from bzrlib.tests import stub_sftp
78
78
        params = self.get_params_passed_to_core('selftest --transport=sftp')
79
79
        self.assertEqual(stub_sftp.SFTPAbsoluteServer,
80
80
            params[1]["transport"])
82
82
    def test_transport_set_to_memory(self):
83
83
        # Test that we can pass a transport to the selftest core - memory
84
84
        # version.
 
85
        import bzrlib.transport.memory
85
86
        params = self.get_params_passed_to_core('selftest --transport=memory')
86
 
        self.assertEqual(memory.MemoryServer, params[1]["transport"])
 
87
        self.assertEqual(bzrlib.transport.memory.MemoryServer,
 
88
            params[1]["transport"])
87
89
 
88
90
    def test_parameters_passed_to_core(self):
89
91
        params = self.get_params_passed_to_core('selftest --list-only')