~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testinv.py

  • Committer: Martin Pool
  • Date: 2005-09-12 01:29:49 UTC
  • mto: (1092.2.12) (974.1.76) (1185.8.2)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: mbp@sourcefrog.net-20050912012949-73a539d3f2542173
- patch from mpe to automatically add parent directories

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        self.assertEqual(inv.path2id('src/bye.c'), 'bye-id')
50
50
        
51
51
        self.assert_('src-id' in inv)
 
52
 
 
53
 
 
54
    def test_version(self):
 
55
        """Inventory remembers the text's version."""
 
56
        inv = Inventory()
 
57
        ie = inv.add_path('foo.txt', 'file')
 
58
        ## XXX
 
59