~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testinv.py

  • Committer: Aaron Bentley
  • Date: 2005-09-29 21:07:17 UTC
  • mfrom: (1393.1.6)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: abentley@panoramicfeedback.com-20050929210717-cd73981590f17017
Merged the weave changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
import os
17
18
from bzrlib.selftest import TestCase
18
19
 
19
20
from bzrlib.inventory import Inventory, InventoryEntry
23
24
 
24
25
    def test_is_within(self):
25
26
        from bzrlib.osutils import is_inside_any
26
 
        
27
 
        for dirs, fn in [(['src', 'doc'], 'src/foo.c'),
28
 
                         (['src'], 'src/foo.c'),
 
27
 
 
28
        SRC_FOO_C = os.path.join('src', 'foo.c')
 
29
        for dirs, fn in [(['src', 'doc'], SRC_FOO_C),
 
30
                         (['src'], SRC_FOO_C),
29
31
                         (['src'], 'src'),
30
32
                         ]:
31
33
            self.assert_(is_inside_any(dirs, fn))