/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/blackbox/test_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:
42
42
        tree = self.make_branch_and_tree('tree')
43
43
        self.build_tree(['tree/newpath'])
44
44
        tree.add('newpath', b'file-id')
45
 
        tree.branch.set_reference_info('newpath', 'http://example.org', b'file-id')
 
45
        tree.branch.set_reference_info(
 
46
            'newpath', 'http://example.org', b'file-id')
46
47
        tree.branch.set_reference_info('lath', 'http://example.org/2',
47
 
                b'file-id2')
 
48
                                       b'file-id2')
48
49
        return tree
49
50
 
50
51
    def test_uses_working_tree_location(self):
89
90
    def test_missing_file_forced(self):
90
91
        tree = self.make_branch_and_tree('tree')
91
92
        out, err = self.run_bzr(
92
 
                'reference --force-unversioned file http://example.org',
93
 
                working_dir='tree')
 
93
            'reference --force-unversioned file http://example.org',
 
94
            working_dir='tree')
94
95
        location, file_id = tree.branch.get_reference_info('file')
95
96
        self.assertEqual('http://example.org', location)
96
97
        self.assertEqual('', out)