~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testtestament.py

  • Committer: Robert Collins
  • Date: 2005-10-17 11:56:54 UTC
  • mfrom: (1185.16.59)
  • Revision ID: robertc@robertcollins.net-20051017115654-662239e1587524a8
mergeĀ fromĀ martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
from bzrlib.trace import mutter
30
30
from bzrlib.osutils import has_symlinks
31
31
 
32
 
 
33
32
class TestamentTests(TestCaseInTempDir):
34
 
 
35
33
    def setUp(self):
36
34
        super(TestamentTests, self).setUp()
37
35
        b = self.b = Branch.initialize('.')
116
114
                      revprops=props)
117
115
        t = Testament.from_revision(self.b, 'test@user-3')
118
116
        self.assertEqualDiff(t.as_text(), REV_PROPS_TESTAMENT)
119
 
 
120
 
    def test___init__(self):
121
 
        revision = self.b.get_revision('test@user-2')
122
 
        inventory = self.b.get_inventory('test@user-2')
123
 
        testament_1 = Testament(revision, inventory).as_short_text()
124
 
        testament_2 = Testament.from_revision(self.b, 
125
 
                                              'test@user-2').as_short_text()
126
 
        self.assertEqual(testament_1, testament_2)
127
117
                    
128
118
 
129
119
REV_1_TESTAMENT = """\