~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_xml.py

  • Committer: John Arbash Meinel
  • Date: 2007-07-20 14:28:59 UTC
  • mfrom: (2625.6.3 bzr.email_message)
  • mto: This revision was merged to the branch mainline in revision 2640.
  • Revision ID: john@arbash-meinel.com-20070720142859-a24s0khul0yw91bh
(Adeodato Simó) EmailMessage class, allowing much nicer access to Email object than stdlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    errors, 
21
21
    inventory, 
22
22
    xml7,
 
23
    xml_serializer,
23
24
    )
24
25
from bzrlib.tests import TestCase
25
26
from bzrlib.inventory import Inventory, InventoryEntry
397
398
 
398
399
        self.assertEqual(len(expected), len(actual))
399
400
 
 
401
    def test_registry(self):
 
402
        self.assertIs(serializer_v4,
 
403
                      xml_serializer.format_registry.get('4'))
 
404
        self.assertIs(bzrlib.xml5.serializer_v5,
 
405
                      xml_serializer.format_registry.get('5'))
 
406
        self.assertIs(bzrlib.xml6.serializer_v6,
 
407
                      xml_serializer.format_registry.get('6'))
 
408
        self.assertIs(bzrlib.xml7.serializer_v7,
 
409
                      xml_serializer.format_registry.get('7'))
 
410
 
400
411
 
401
412
class TestEncodeAndEscape(TestCase):
402
413
    """Whitebox testing of the _encode_and_escape function."""