~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: 2010-02-11 04:02:41 UTC
  • mfrom: (5017.2.2 tariff)
  • Revision ID: pqm@pqm.ubuntu.com-20100211040241-w6n021dz0uus341n
(mbp) add import-tariff tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2009 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
51
51
            [(['cat', '>file'], 'content\n', None, None)],
52
52
            script._script_to_commands('$ cat >file\n<content\n'))
53
53
 
54
 
    def test_indented(self):
55
 
        # scripts are commonly given indented within the test source code, and
56
 
        # common indentation is stripped off
57
 
        story = """
58
 
            $ bzr add
59
 
            adding file
60
 
            adding file2
61
 
            """
62
 
        self.assertEquals([(['bzr', 'add'], None,
63
 
                            'adding file\nadding file2\n', None)],
64
 
                          script._script_to_commands(story))
65
 
 
66
54
    def test_command_with_output(self):
67
55
        story = """
68
56
$ bzr add