~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/revisionstore_implementations/test_all.py

  • Committer: Robert Collins
  • Date: 2006-03-06 09:38:37 UTC
  • mto: (1594.2.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060306093837-b151989e9572895e
Remove all but fetch references to repository.revision_store.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
                          'B',
78
78
                          'foo\nbar',
79
79
                          self.transaction)
 
80
        self.assertRaises(errors.NoSuchRevision,
 
81
                          self.store.has_signature,
 
82
                          'B',
 
83
                          self.transaction)
 
84
    
 
85
    def test_add_signature_text(self):
 
86
        # add a signature to a existing revision works.
 
87
        self.add_sample_rev()
 
88
        self.assertFalse(self.store.has_signature('A', self.transaction))
 
89
        self.store.add_revision_signature_text('A', 'foo\nbar', self.transaction)
 
90
        self.assertTrue(self.store.has_signature('A', self.transaction))
80
91
 
81
92
    def test_total_size(self):
82
93
        # we get a revision count and a numeric size figure from total_size().
88
99
        self.assertEqual(1, count)
89
100
        self.assertNotEqual(0, bytes)
90
101
        
 
102
    def test_all_revision_ids(self):
 
103
        self.assertEqual([], self.store.all_revision_ids(self.transaction))
 
104
        self.add_sample_rev()
 
105
        self.assertEqual(['A'], self.store.all_revision_ids(self.transaction))