~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_script.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-16 22:42:54 UTC
  • mfrom: (4797.3.21 2.1.0b4-win32-accepted)
  • Revision ID: pqm@pqm.ubuntu.com-20091116224254-fgspnq9xz29z662j
(jam) Lots of win32 test-suite fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
2>: No such file or directory
263
263
""")
264
264
 
265
 
    def test_echo_bogus_input_file(self):
266
 
        # We need a backing file sysytem for that test so it can't be in
267
 
        # TestEcho
268
 
        self.run_script("""
269
 
$ echo <file
270
 
2>file: No such file or directory
271
 
""")
272
 
 
273
265
    def test_echo_bogus_output_file(self):
274
266
        # We need a backing file sysytem for that test so it can't be in
275
267
        # TestEcho
338
330
"""
339
331
        self.assertRaises(SyntaxError, self.run_script, story)
340
332
 
 
333
    def test_echo_input(self):
 
334
        self.assertRaises(SyntaxError, self.run_script, """
 
335
            $ echo <foo
 
336
            """)
 
337
 
341
338
    def test_echo_to_output(self):
342
339
        retcode, out, err = self.run_command(['echo'], None, '\n', None)
343
340
        self.assertEquals('\n', out)