/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testinv.py

  • Committer: Robert Collins
  • Date: 2005-08-24 08:34:10 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050824083410-98aa4eeb52653394
import and use TestUtil to do regex based partial test runs

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
 
from bzrlib.selftest import TestBase
 
17
from bzrlib.selftest import TestCase
18
18
 
19
19
from bzrlib.inventory import Inventory, InventoryEntry
20
20
 
21
21
 
22
 
class TestIsWithin(TestBase):
23
 
    def runTest(self):
 
22
class TestInventory(TestCase):
 
23
 
 
24
    def test_is_within(self):
24
25
        from bzrlib.osutils import is_inside_any
25
26
        
26
27
        for dirs, fn in [(['src', 'doc'], 'src/foo.c'),
33
34
                         (['src'], 'srccontrol/foo')]:
34
35
            self.assertFalse(is_inside_any(dirs, fn))
35
36
            
36
 
            
37
 
            
38
 
class TestInventoryIds(TestBase):
39
 
    def runTest(self):
 
37
    def test_ids(self):
40
38
        """Test detection of files within selected directories."""
41
39
        inv = Inventory()
42
40