/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

merge with bzr.dev

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.