~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_pack.py

  • Committer: Andrew Bennetts
  • Date: 2007-10-19 08:42:06 UTC
  • mto: (2535.4.14 streaming-smart-fetch)
  • mto: This revision was merged to the branch mainline in revision 2981.
  • Revision ID: andrew.bennetts@canonical.com-20071019084206-5q81fn1u5rsbnwln
Add a couple of docstrings to the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
545
545
 
546
546
        
547
547
class TestContainerPushParser(PushParserTestCase):
 
548
    """Tests for ContainerPushParser."""
548
549
 
549
550
    def test_construct(self):
550
551
        """ContainerPushParser can be constructed."""
551
552
        pack.ContainerPushParser()
552
553
 
553
554
    def test_multiple_records_at_once(self):
 
555
        """If multiple records worth of data are fed to the parser in one
 
556
        string, the parser will correctly parse all the records.
 
557
 
 
558
        (A naive implementation might stop after parsing the first record.)
 
559
        """
554
560
        parser = self.make_parser_expecting_record_type()
555
561
        parser.accept_bytes("B5\nname1\n\nbody1B5\nname2\n\nbody2")
556
562
        self.assertEqual(