/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_pack.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        This uses None as the output stream to show that the constructor
93
93
        doesn't try to use the output stream.
94
94
        """
95
 
        writer = pack.ContainerWriter(None)
 
95
        pack.ContainerWriter(None)
96
96
 
97
97
    def test_begin(self):
98
98
        """The begin() method writes the container format marker line."""
246
246
        This uses None as the output stream to show that the constructor
247
247
        doesn't try to use the input stream.
248
248
        """
249
 
        reader = pack.ContainerReader(None)
 
249
        pack.ContainerReader(None)
250
250
 
251
251
    def test_empty_container(self):
252
252
        """Read an empty container."""
342
342
 
343
343
    def test_validate_no_end_marker(self):
344
344
        """validate raises UnexpectedEndOfContainerError if there's no end of
345
 
        container marker, even if the container up to this point has been valid.
 
345
        container marker, even if the container up to this point has been
 
346
        valid.
346
347
        """
347
348
        reader = self.get_reader_for(
348
349
            b"Bazaar pack format 1 (introduced in 0.18)\n")
565
566
        """Test reading of both single bytes and all bytes in a hunk."""
566
567
        transport = self.get_transport()
567
568
        transport.put_bytes('sample', b'0123456789')
568
 
        f = pack.ReadVFile(transport.readv('sample', [(0, 1), (1, 2), (4, 1), (6, 2)]))
 
569
        f = pack.ReadVFile(transport.readv(
 
570
            'sample', [(0, 1), (1, 2), (4, 1), (6, 2)]))
569
571
        results = []
570
572
        results.append(f.read(1))
571
573
        results.append(f.read(2))