~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_groupcompress.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-20 09:27:48 UTC
  • mfrom: (4241.16.6 bzr-1.14rc2)
  • Revision ID: pqm@pqm.ubuntu.com-20090420092748-tm2cofylpjauo1nw
(tanner) merge release 1.14rc2 back into bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                          'different\n', sha1_2),
120
120
                         compressor.extract(('newlabel',)))
121
121
 
 
122
    def test_pop_last(self):
 
123
        compressor = self.compressor()
 
124
        _, _, _, _ = compressor.compress(('key1',),
 
125
            'some text\nfor the first entry\n', None)
 
126
        expected_lines = list(compressor.chunks)
 
127
        _, _, _, _ = compressor.compress(('key2',),
 
128
            'some text\nfor the second entry\n', None)
 
129
        compressor.pop_last()
 
130
        self.assertEqual(expected_lines, compressor.chunks)
 
131
 
122
132
 
123
133
class TestPyrexGroupCompressor(TestGroupCompressor):
124
134