/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: John Arbash Meinel
  • Date: 2008-08-29 01:55:32 UTC
  • mto: This revision was merged to the branch mainline in revision 3665.
  • Revision ID: john@arbash-meinel.com-20080829015532-d26jj843xwt7ad8u
Fix the test suite.
Remove the 'assert' statements and turn them into raise AssertionError
Fix the test that assumed ProtoThreeDecoder had an '_in_buffer'
member.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2267
2267
    def test_construct_version_three_server_protocol(self):
2268
2268
        smart_protocol = protocol.ProtocolThreeDecoder(None)
2269
2269
        self.assertEqual('', smart_protocol.unused_data)
2270
 
        self.assertEqual('', smart_protocol._in_buffer)
 
2270
        self.assertEqual([], smart_protocol._in_buffer_list)
 
2271
        self.assertEqual(0, smart_protocol._in_buffer_len)
2271
2272
        self.assertFalse(smart_protocol._has_dispatched)
2272
2273
        # The protocol starts by expecting four bytes, a length prefix for the
2273
2274
        # headers.