/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 breezy/tests/test_bundle.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-09 02:41:42 UTC
  • mto: This revision was merged to the branch mainline in revision 7488.
  • Revision ID: jelmer@jelmer.uk-20200209024142-7na5g3o0av5n0374
add_bytes_record now takes chunks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1796
1796
        writer = v4.BundleWriter(fileobj)
1797
1797
        writer.begin()
1798
1798
        writer.add_info_record({b'foo': b'bar'})
1799
 
        writer._container.add_bytes_record(b'blah', [(b'two', ), (b'names', )])
 
1799
        writer._container.add_bytes_record([b'blah'], len(b'blah'), [(b'two', ), (b'names', )])
1800
1800
        writer.end()
1801
1801
        fileobj.seek(0)
1802
1802
        record_iter = v4.BundleReader(fileobj).iter_records()