/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/git/tests/test_memorytree.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-02 02:35:46 UTC
  • mfrom: (7309 work)
  • mto: This revision was merged to the branch mainline in revision 7319.
  • Revision ID: jelmer@jelmer.uk-20190602023546-lqco868tnv26d8ow
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Tests for the GitMemoryTree class."""
19
19
 
20
20
from ... import errors
21
 
from ...treebuilder import TreeBuilder
22
21
from . import TestCaseWithTransport
23
22
 
24
23
 
48
47
        with tree.lock_read():
49
48
            self.assertEqual([rev_id], tree.get_parent_ids())
50
49
            self.assertEqual(b'contents of sometree/foo\n',
51
 
                tree.get_file('foo').read())
 
50
                             tree.get_file('foo').read())
52
51
 
53
52
    def test_lock_tree_write(self):
54
53
        """Check we can lock_tree_write and unlock MemoryTrees."""