/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/per_repository/test_has_revisions.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for implementations of Repository.has_revisions."""
18
18
 
19
 
from bzrlib.revision import NULL_REVISION
20
 
from bzrlib.tests.per_repository import TestCaseWithRepository
 
19
from breezy.revision import NULL_REVISION
 
20
from breezy.tests.per_repository import TestCaseWithRepository
21
21
 
22
22
 
23
23
class TestHasRevisions(TestCaseWithRepository):
32
32
        rev1 = tree.commit('1')
33
33
        rev2 = tree.commit('2')
34
34
        rev3 = tree.commit('3')
35
 
        self.assertEqual(set([rev1, rev3]),
 
35
        self.assertEqual({rev1, rev3},
36
36
            repo.has_revisions([rev1, rev3, 'foobar:']))
37
37
 
38
38
    def test_NULL(self):
39
39
        # NULL_REVISION is always present. So for
40
40
        # compatibility with 'has_revision' we make this work.
41
41
        repo = self.make_repository('.')
42
 
        self.assertEqual(set([NULL_REVISION]),
 
42
        self.assertEqual({NULL_REVISION},
43
43
            repo.has_revisions([NULL_REVISION]))