~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-12 23:17:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2071.
  • Revision ID: john@arbash-meinel.com-20060912231716-b46abd2325a03c0d
Fix the inventory doc tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    InventoryDirectory('123', 'src', parent_id='TREE_ROOT', revision=None)
89
89
    >>> i.add(InventoryFile('2323', 'hello.c', parent_id='123'))
90
90
    InventoryFile('2323', 'hello.c', parent_id='123', sha1=None, len=None)
91
 
    >>> shouldbe = {0: '', 1: 'src', 2: pathjoin('src','hello.c')}
 
91
    >>> shouldbe = {0: '', 1: 'src', 2: 'src/hello.c'}
92
92
    >>> for ix, j in enumerate(i.iter_entries()):
93
93
    ...   print (j[0] == shouldbe[ix], j[1])
94
94
    ...