~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_transport.py

  • Committer: Andrew Bennetts
  • Date: 2010-08-31 07:12:18 UTC
  • mto: This revision was merged to the branch mainline in revision 5401.
  • Revision ID: andrew.bennetts@canonical.com-20100831071218-4kjieu3ejqcdmdom
Use has_id rather than __contains__; expand NEWS entry; add What's New entry.

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
 
254
255
        self.assertRaises(NoSuchFile, t.get_bytes, 'c')
255
256
 
256
257
    def test_get_with_open_write_stream_sees_all_content(self):
1265
1266
        self.assertIs(t._get_connection(), c._get_connection())
1266
1267
 
1267
1268
        # Temporary failure, we need to create a new dummy connection
1268
 
        new_connection = None
 
1269
        new_connection = object()
1269
1270
        t._set_connection(new_connection)
1270
1271
        # Check that both transports use the same connection
1271
1272
        self.assertIs(new_connection, t._get_connection())