~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2012-03-13 17:25:29 UTC
  • mfrom: (6499 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6501.
  • Revision ID: v.ladeuil+lp@free.fr-20120313172529-i0suyjnepsor25i7
Merge trunk

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