~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-30 07:47:38 UTC
  • mfrom: (5394.2.1 integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20100830074738-ymqwum541fi8b4sr
(vila) Fix most of the leaking tests (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
 
252
252
    def test_get_bytes_unknown_file(self):
253
253
        t = self.get_transport()
254
 
 
255
254
        self.assertRaises(NoSuchFile, t.get_bytes, 'c')
256
255
 
257
256
    def test_get_with_open_write_stream_sees_all_content(self):
1266
1265
        self.assertIs(t._get_connection(), c._get_connection())
1267
1266
 
1268
1267
        # Temporary failure, we need to create a new dummy connection
1269
 
        new_connection = object()
 
1268
        new_connection = None
1270
1269
        t._set_connection(new_connection)
1271
1270
        # Check that both transports use the same connection
1272
1271
        self.assertIs(new_connection, t._get_connection())