~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_xml.py

  • Committer: Robert Collins
  • Date: 2005-09-14 09:01:06 UTC
  • mto: (1185.1.12)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: robertc@robertcollins.net-20050914090106-50ddfad9500a8ae9
make diff lsdiff/filterdiff friendly

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from bzrlib.selftest import TestCase
20
20
from bzrlib.inventory import Inventory, InventoryEntry
21
 
from bzrlib.xml import serializer_v4
22
 
from bzrlib.xml5 import serializer_v5
 
21
from bzrlib.xml import serializer_v4, serializer_v5
23
22
 
24
23
_working_inventory_v4 = """<inventory file_id="TREE_ROOT">
25
24
<entry file_id="bar-20050901064931-73b4b1138abc9cd2" kind="file" name="bar" parent_id="TREE_ROOT" />
44
43
"""
45
44
 
46
45
_revision_v5 = """<revision committer="Martin Pool &lt;mbp@sourcefrog.net&gt;"
 
46
    inventory_id="mbp@sourcefrog.net-20050905080035-e0439293f8b6b9f9"
47
47
    inventory_sha1="e79c31c1deb64c163cf660fdedd476dd579ffd41"
48
48
    revision_id="mbp@sourcefrog.net-20050905080035-e0439293f8b6b9f9"
49
49
    timestamp="1125907235.211783886"
102
102
        eq = self.assertEqual
103
103
        eq(rev.committer,
104
104
           "Martin Pool <mbp@sourcefrog.net>")
 
105
        eq(rev.inventory_id,
 
106
           "mbp@sourcefrog.net-20050905080035-e0439293f8b6b9f9")
105
107
        eq(len(rev.parents), 1)
106
108
        eq(rev.timezone, 36000)
107
109
        eq(rev.parents[0].revision_id,