~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-23 00:18:12 UTC
  • mfrom: (2743.1.5 misc-fixen)
  • Revision ID: pqm@pqm.ubuntu.com-20070823001812-eermtd2vfr5o6b7o
(robertc) Several minor miscellaneous code cleanup fixes. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        # has of a non present id -> False
59
59
        self.assertFalse(self.store.has_revision_id('missing', self.transaction))
60
60
 
61
 
    def test_has_None(self):
62
 
        # has of None -> True
 
61
    def test_has_null(self):
 
62
        # has of null -> True
63
63
        self.assertTrue(self.store.has_revision_id('null:', self.transaction))
64
64
 
65
 
    def test_get_revision_none(self):
66
 
        # get_revision(None) -> raises NoSuchRevision
 
65
    def test_get_revision_missing(self):
 
66
        # get_revision('B') -> raises NoSuchRevision
67
67
        self.assertRaises(errors.NoSuchRevision,
68
68
                          self.store.get_revision,
69
69
                          'B',
70
70
                          self.transaction)
71
71
 
 
72
    def test_get_revision_null(self):
 
73
        # get_revision(null) -> raises ReservedId
 
74
        self.assertRaises(errors.ReservedId,
 
75
                          self.store.get_revision,
 
76
                          'null:',
 
77
                          self.transaction)
 
78
 
72
79
    def test_add_signature_text_missing(self):
73
80
        # add of a text signature for a missing revision must work, to allow
74
81
        # revisions to be added after the signature.