~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-12-20 11:04:44 UTC
  • mfrom: (2178.4.6 win32.binary-stdout)
  • Revision ID: pqm@pqm.ubuntu.com-20061220110444-a991704cfe50d2b3
(bialix) Bugfix #55276: on win32 cat, bundle and diff commands provide
 binary output without mangling line-endings

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
                                   "+++ goodbye\t")
295
295
        self.assertEndsWith(out, "\n@@ -0,0 +1 @@\n"
296
296
                                 "+baz\n\n")
 
297
 
 
298
 
 
299
class TestDiffOutput(DiffBase):
 
300
 
 
301
    def test_diff_output(self):
 
302
        # check that output doesn't mangle line-endings
 
303
        self.make_example_branch()
 
304
        file('hello', 'wb').write('hello world!\n')
 
305
        output = self.run_bzr_subprocess('diff', retcode=1)[0]
 
306
        self.assert_('\n+hello world!\n' in output)