/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_add_fallback_repository.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 Repository.add_fallback_repository."""
18
18
 
19
 
from bzrlib import (
 
19
from breezy import (
20
20
    errors,
21
21
    )
22
 
from bzrlib.revision import NULL_REVISION
23
 
from bzrlib.tests import TestNotApplicable
24
 
from bzrlib.tests.per_repository import TestCaseWithRepository
 
22
from breezy.revision import NULL_REVISION
 
23
from breezy.tests import TestNotApplicable
 
24
from breezy.tests.per_repository import TestCaseWithRepository
25
25
 
26
26
 
27
27
class TestAddFallbackRepository(TestCaseWithRepository):
39
39
        repo.lock_read()
40
40
        self.addCleanup(repo.unlock)
41
41
        # can see all revisions
42
 
        self.assertEqual(set([revision_id]), set(repo.all_revision_ids()))
 
42
        self.assertEqual({revision_id}, set(repo.all_revision_ids()))
43
43
        # and can also query the parent map, either on the revisions
44
44
        # versionedfiles, which works in tuple keys...
45
45
        self.assertEqual({(revision_id,): ()},