~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
"""
21
21
 
22
22
import os
 
23
import sys
23
24
 
24
25
from bzrlib.tests.blackbox import TestCaseWithTransport
25
26
 
128
129
        out, err = self.run_bzr_subprocess(['cat', url])
129
130
        self.assertEqual('contents of README\n', out)
130
131
 
 
132
    def test_cat_nonexistent_branch(self):
 
133
        if sys.platform == "win32":
 
134
            location = "C:/i/do/not/exist"
 
135
        else:
 
136
            location = "/i/do/not/exist"
 
137
        self.run_bzr_error(['^bzr: ERROR: Not a branch'], ['cat', location])