~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ftp_transport.py

  • Committer: Vincent Ladeuil
  • Date: 2007-10-19 10:53:21 UTC
  • mto: (2919.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2920.
  • Revision ID: v.ladeuil+lp@free.fr-20071019105321-i0rh34oe1jm0ykzj
Reproduce the bug.

* test_ftp_transport.py:
(TestFTPServer.test__reconnect): New test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        t.put_bytes('foo', 'test bytes\n')
78
78
        self.assertEqual('test bytes\n', t.get_bytes('foo'))
79
79
 
 
80
    def test__reconnect(self):
 
81
        t = self.get_transport()
 
82
        t.put_bytes('foo', 'test bytes\n')
 
83
        self.assertEqual('test bytes\n', t.get_bytes('foo'))
 
84
        t._reconnect()
 
85
        t.put_bytes('foo', 'test bytes\n')
 
86
        self.assertEqual('test bytes\n', t.get_bytes('foo'))
 
87
 
80
88
 
81
89
class TestFTPServerUI(TestCaseWithFTPServer):
82
90