~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testbranch.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-27 04:42:41 UTC
  • mfrom: (1092.1.43)
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050827044241-23d676133b9fc981
Merge of robertc@robertcollins.net-20050826013321-52eee1f1da679ee9

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 TestCaseInTempDir
18
 
 
19
 
 
20
 
class TestAppendRevisions(TestCaseInTempDir):
 
17
from bzrlib.selftest import InTempDir
 
18
 
 
19
 
 
20
class TestAppendRevisions(InTempDir):
21
21
    """Test appending more than one revision"""
22
22
    def test_append_revisions(self):
23
23
        from bzrlib.branch import Branch
24
 
        br = Branch.initialize(".")
 
24
        br = Branch(".", init=True)
25
25
        br.append_revision("rev1")
26
26
        self.assertEquals(br.revision_history(), ["rev1",])
27
27
        br.append_revision("rev2", "rev3")