/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 breezy/tests/per_workingtree/test_add_reference.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                'Tree format does not support references')
38
38
        else:
39
39
            self.fail('%r does not support references but should'
40
 
                % (tree, ))
 
40
                      % (tree, ))
41
41
 
42
42
    def make_nested_trees(self):
43
43
        tree, sub_tree = self.make_trees()
59
59
            with basis.lock_read():
60
60
                sub_tree = tree.get_nested_tree('sub-tree')
61
61
                self.assertEqual(
62
 
                        sub_tree.last_revision(),
63
 
                        tree.get_reference_revision('sub-tree'))
 
62
                    sub_tree.last_revision(),
 
63
                    tree.get_reference_revision('sub-tree'))
64
64
 
65
65
    def test_add_reference_same_root(self):
66
66
        tree = self.make_branch_and_tree('tree')