~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_xml.py

  • Committer: Jelmer Vernooij
  • Date: 2009-04-02 15:28:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4253.
  • Revision ID: jelmer@samba.org-20090402152811-0uxng6q5kseoug7q
Add new module with generic serializer information; keep XML-specific bits in 
xml_serializer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    inventory,
22
22
    xml7,
23
23
    xml8,
24
 
    xml_serializer,
 
24
    serializer,
25
25
    )
26
26
from bzrlib.tests import TestCase
27
27
from bzrlib.inventory import Inventory, InventoryEntry
494
494
 
495
495
    def test_registry(self):
496
496
        self.assertIs(serializer_v4,
497
 
                      xml_serializer.format_registry.get('4'))
 
497
                      serializer.format_registry.get('4'))
498
498
        self.assertIs(bzrlib.xml5.serializer_v5,
499
 
                      xml_serializer.format_registry.get('5'))
 
499
                      serializer.format_registry.get('5'))
500
500
        self.assertIs(bzrlib.xml6.serializer_v6,
501
 
                      xml_serializer.format_registry.get('6'))
 
501
                      serializer.format_registry.get('6'))
502
502
        self.assertIs(bzrlib.xml7.serializer_v7,
503
 
                      xml_serializer.format_registry.get('7'))
 
503
                      serializer.format_registry.get('7'))
504
504
        self.assertIs(bzrlib.xml8.serializer_v8,
505
 
                      xml_serializer.format_registry.get('8'))
 
505
                      serializer.format_registry.get('8'))
506
506
 
507
507
 
508
508
class TestEncodeAndEscape(TestCase):