~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/versioning.py

  • Committer: Martin Pool
  • Date: 2005-08-29 01:25:00 UTC
  • Revision ID: mbp@sourcefrog.net-20050829012500-36f2d20363be4a53
* move bzr-specific code from testsweet into bzrlib.selftest

* logging from within test suites is now done using python logging, so
  the regular .bzr.log is not cluttered and the results can be easily
  seen if the test fails

* don't capture stdout/stderr while running tests, instead let it leak
  through so that we can see places where the library is doing its own
  output and should be fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
 
24
24
import os
25
 
from bzrlib.selftest import InTempDir, BzrTestBase
 
25
from bzrlib.selftest import BzrTestBase, FunctionalTestCase
26
26
from bzrlib.branch import Branch
27
27
 
28
28
 
29
 
class TestVersioning(InTempDir):
 
29
class TestVersioning(FunctionalTestCase):
30
30
    
31
31
    def test_mkdir(self): 
32
32
        """Basic 'bzr mkdir' operation"""
100
100
        eq(list(b.unknowns()), [])
101
101
        
102
102
        
103
 
class SubdirCommit(BzrTestBase):
 
103
class SubdirCommit(FunctionalTestCase):
104
104
 
105
105
    def test_subdir_commit(self):
106
106
        """Test committing a subdirectory, and committing within a directory."""