~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testinv.py

  • Committer: Martin Pool
  • Date: 2005-07-23 00:18:14 UTC
  • Revision ID: mbp@sourcefrog.net-20050723001814-03baa015c59253f6
- Add less-sucky is_within_any

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from bzrlib.inventory import Inventory, InventoryEntry
20
20
 
 
21
 
21
22
class TestIsWithin(TestBase):
22
23
    def runTest(self):
23
24
        from bzrlib.osutils import is_inside_any
28
29
                         ]:
29
30
            self.assert_(is_inside_any(dirs, fn))
30
31
            
 
32
        for dirs, fn in [(['src'], 'srccontrol'),
 
33
                         (['src'], 'srccontrol/foo')]:
 
34
            self.assertFalse(is_inside_any(dirs, fn))
 
35
            
 
36
            
31
37
            
32
38
class TestInventoryIds(TestBase):
33
39
    def runTest(self):