~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_send.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-25 15:53:18 UTC
  • mto: (6437.3.24 2.5)
  • mto: This revision was merged to the branch mainline in revision 6451.
  • Revision ID: jelmer@samba.org-20120125155318-pnxvhethlrfhyr02
Fix 'bzr send' in treeless branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    merge_directive,
25
25
    tests,
26
26
    )
 
27
from bzrlib.controldir import ControlDir
27
28
from bzrlib.bundle import serializer
28
29
from bzrlib.transport import memory
29
30
from bzrlib.tests import (
330
331
        super(TestSendStrictWithoutChanges, self).setUp()
331
332
        self.make_parent_and_local_branches()
332
333
 
 
334
    def test_send_without_workingtree(self):
 
335
        ControlDir.open("local").destroy_workingtree()
 
336
        self.assertSendSucceeds([])
 
337
 
333
338
    def test_send_default(self):
334
339
        self.assertSendSucceeds([])
335
340