~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_xml.py

  • Committer: Aaron Bentley
  • Date: 2005-10-04 04:32:32 UTC
  • mfrom: (1185.12.6)
  • mto: (1185.12.13)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: aaron.bentley@utoronto.ca-20051004043231-40302a149769263b
merged my own changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
_committed_inv_v5 = """<inventory>
61
61
<file file_id="bar-20050901064931-73b4b1138abc9cd2" 
62
62
      name="bar" parent_id="TREE_ROOT" 
63
 
      text_version="mbp@foo-123123" name_version="mbp@foo-123123"
64
 
      />
 
63
      revision="mbp@foo-123123"/>
65
64
<directory name="subdir"
66
65
           file_id="foo-20050801201819-4139aa4a272f4250"
67
66
           parent_id="TREE_ROOT" 
68
 
           name_version="mbp@foo-00"/>
 
67
           revision="mbp@foo-00"/>
69
68
<file file_id="bar-20050824000535-6bc48cfad47ed134" 
70
69
      name="bar" parent_id="foo-20050801201819-4139aa4a272f4250" 
71
 
      name_version="mbp@foo-00"
72
 
      text_version="mbp@foo-123123"/>
 
70
      revision="mbp@foo-00"/>
73
71
</inventory>
74
72
"""
75
73
 
115
113
        eq(len(inv), 4)
116
114
        ie = inv['bar-20050824000535-6bc48cfad47ed134']
117
115
        eq(ie.kind, 'file')
118
 
        eq(ie.text_version, 'mbp@foo-123123')
119
 
        eq(ie.name_version, 'mbp@foo-00')
 
116
        eq(ie.revision, 'mbp@foo-00')
120
117
        eq(ie.name, 'bar')
121
118
        eq(inv[ie.parent_id].kind, 'directory')
122
119