~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_pack.py

  • Committer: Aaron Bentley
  • Date: 2007-06-28 17:13:06 UTC
  • mto: (2520.4.116 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2572.
  • Revision ID: abentley@panoramicfeedback.com-20070628171306-scpsxn9g89cchzz8
Use file-like objects as container input, not callables

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
 
90
90
    def get_reader_for(self, bytes):
91
91
        stream = StringIO(bytes)
92
 
        reader = pack.ContainerReader(stream.read)
 
92
        reader = pack.ContainerReader(stream)
93
93
        return reader
94
94
 
95
95
    def test_construct(self):
213
213
 
214
214
    def get_reader_for(self, bytes):
215
215
        stream = StringIO(bytes)
216
 
        reader = pack.BytesRecordReader(stream.read)
 
216
        reader = pack.BytesRecordReader(stream)
217
217
        return reader
218
218
 
219
219
    def test_record_with_no_name(self):