~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
 
19
19
import os
 
20
import sys
20
21
from StringIO import StringIO
21
22
 
22
23
from bzrlib import (
236
237
                                 'grandparent'])
237
238
        self.assertEqual('revision1', md.base_revision_id)
238
239
        self.assertEqual('revision3', md.revision_id)
 
240
 
 
241
    def test_nonexistant_branch(self):
 
242
        if sys.platform == "win32":
 
243
            location = "C:/i/do/not/exist/"
 
244
        else:
 
245
            location = "/i/do/not/exist/"
 
246
        out, err = self.run_bzr(["send", "--from", location], retcode=3)
 
247
        self.assertEqual(out, '')
 
248
        self.assertEqual(err, 'bzr: ERROR: Not a branch: "%s".\n' % location)