/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-03-25 11:54:30 UTC
  • mfrom: (6855.4.10 more-bees)
  • Revision ID: breezy.the.bot@gmail.com-20180325115430-75xnlbrmzjoomd83
Add more bees. In particular:

* for file ids
* for revision ids
* for file contents in build_tree_contents()

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

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)