/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: Jelmer Vernooij
  • Date: 2018-03-25 12:47:13 UTC
  • mfrom: (6928 work)
  • mto: (6940.2.6 base)
  • mto: This revision was merged to the branch mainline in revision 6941.
  • Revision ID: jelmer@jelmer.uk-20180325124713-dq64vm9bhch1gjow
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    def make_tree_with_reference(self):
44
44
        tree = self.make_branch_and_tree('tree')
45
45
        self.build_tree(['tree/newpath'])
46
 
        tree.add('newpath', 'file-id')
 
46
        tree.add('newpath', b'file-id')
47
47
        tree.branch.set_reference_info('file-id', 'path', 'http://example.org')
48
48
        tree.branch.set_reference_info('file-id2', 'lath',
49
49
                                       'http://example.org/2')
74
74
    def test_two_args_sets(self):
75
75
        tree = self.make_branch_and_tree('tree')
76
76
        self.build_tree(['tree/file'])
77
 
        tree.add('file', 'file-id')
 
77
        tree.add('file', b'file-id')
78
78
        out, err = self.run_bzr('reference tree/file http://example.org')
79
79
        path, location = tree.branch.get_reference_info('file-id')
80
80
        self.assertEqual('http://example.org', location)