~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_serializer.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-11 11:47:36 UTC
  • mfrom: (5200.3.8 lock_return)
  • Revision ID: pqm@pqm.ubuntu.com-20100511114736-mc1sq9zyo3vufec7
(lifeless) Provide a consistent interface to Tree, Branch,
 Repository where lock methods return an object with an unlock method to
 unlock the lock. This breaks the API for Branch,
 Repository on their lock_write methods. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib import (
22
22
    chk_serializer,
23
23
    serializer,
 
24
    xml4,
24
25
    xml5,
25
26
    xml6,
26
27
    xml7,
33
34
    """Test serializer"""
34
35
 
35
36
    def test_registry(self):
 
37
        self.assertIs(xml4.serializer_v4,
 
38
                      serializer.format_registry.get('4'))
36
39
        self.assertIs(xml5.serializer_v5,
37
40
                      serializer.format_registry.get('5'))
38
41
        self.assertIs(xml6.serializer_v6,