~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testbranch.py

  • Committer: Robert Collins
  • Date: 2005-08-24 12:13:13 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-20050824121313-f604a90d56310911
merge up with mpool

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from bzrlib.selftest import InTempDir
18
18
 
19
19
 
20
 
 
21
20
class TestAppendRevisions(InTempDir):
22
21
    """Test appending more than one revision"""
23
 
    def runTest(self):
 
22
    def test_append_revisions(self):
24
23
        from bzrlib.branch import Branch
25
24
        br = Branch(".", init=True)
26
25
        br.append_revision("rev1")
27
26
        self.assertEquals(br.revision_history(), ["rev1",])
28
27
        br.append_revision("rev2", "rev3")
29
28
        self.assertEquals(br.revision_history(), ["rev1", "rev2", "rev3"])
30
 
        
31
 
 
32
 
 
33
 
TEST_CLASSES = [
34
 
    TestAppendRevisions,
35
 
    ]