~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-23 07:15:13 UTC
  • mfrom: (2926 +trunk)
  • mto: (2961.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071023071513-elryt6g2at34d2ur
merge bzr.dev

Show diffs side-by-side

added added

removed removed

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