~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
        tree.unlock()
203
203
        self.assertEquals(our_lock.peek(), None)
204
204
 
 
205
    def test_missing_pending_merges(self):
 
206
        control = bzrdir.BzrDirMetaFormat1().initialize(self.get_url())
 
207
        control.create_repository()
 
208
        control.create_branch()
 
209
        tree = workingtree.WorkingTreeFormat3().initialize(control)
 
210
        tree._control_files._transport.delete("pending-merges")
 
211
        self.assertEqual([], tree.pending_merges())
 
212
 
205
213
 
206
214
class TestFormat2WorkingTree(TestCaseWithTransport):
207
215
    """Tests that are specific to format 2 trees."""