~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Aaron Bentley
  • Date: 2007-06-14 15:14:50 UTC
  • mto: (2520.5.2 bzr.mpbundle)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: abentley@panoramicfeedback.com-20070614151450-0339tqg0dtvytomf
Rename ContainerWriter/ContainerReader to BundleWriter/BundleReader

Show diffs side-by-side

added added

removed removed

Lines of Context:
1115
1115
 
1116
1116
    def test_name_encode(self):
1117
1117
        self.assertEqual('revision:rev1',
1118
 
            v10.ContainerWriter.encode_name('revision', 'rev1'))
 
1118
            v10.BundleWriter.encode_name('revision', 'rev1'))
1119
1119
        self.assertEqual('file:rev1/file-id-1',
1120
 
            v10.ContainerWriter.encode_name('file', 'rev1', 'file-id-1'))
 
1120
            v10.BundleWriter.encode_name('file', 'rev1', 'file-id-1'))
1121
1121
 
1122
1122
    def test_name_decode(self):
1123
1123
        self.assertEqual(('revision', 'rev1', None),
1124
 
            BundleSerializerV10.decode_name('revision:rev1'))
 
1124
            v10.BundleReader.decode_name('revision:rev1'))
1125
1125
        self.assertEqual(('file', 'rev1', 'file-id-1'),
1126
 
            BundleSerializerV10.decode_name('file:rev1/file-id-1'))
 
1126
            v10.BundleReader.decode_name('file:rev1/file-id-1'))
1127
1127
 
1128
1128
 
1129
1129
class MungedBundleTester(TestCaseWithTransport):