~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/ftp_server/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-25 03:36:18 UTC
  • mfrom: (6034.2.4 test-feature-cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20110725033618-n5g9qg6iwyz2dqzw
(mbp) move test feature dependencies into test.features (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
16
 
16
17
"""
17
18
Facilities to use ftp test servers.
18
19
"""
20
21
import sys
21
22
 
22
23
from bzrlib import tests
 
24
from bzrlib.tests import (
 
25
    features,
 
26
    )
23
27
 
24
28
 
25
29
try:
42
46
    pyftpdlib_available = False
43
47
 
44
48
 
45
 
class _FTPServerFeature(tests.Feature):
 
49
class _FTPServerFeature(features.Feature):
46
50
    """Some tests want an FTP Server, check if one is available.
47
51
 
48
52
    Right now, the only way this is available is if one of the following is