~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
    def setUp(self):
28
28
        super(TestLS, self).setUp()
29
 
        
 
29
 
30
30
        # Create a simple branch that can be used in testing
31
31
        ignores._set_user_ignores(['user-ignore'])
32
32
 
77
77
                       'V        a\n',
78
78
                       '--verbose')
79
79
        self.wt.commit('add')
80
 
        
 
80
 
81
81
        self.build_tree(['subdir/'])
82
82
        self.ls_equals('?        .bzrignore\n'
83
83
                       'V        a\n'
97
97
        self.ls_equals(
98
98
            '.bzrignore                                         \n'
99
99
            'a                                                  a-id\n'
100
 
            'subdir/                                            subdir-id\n', 
 
100
            'subdir/                                            subdir-id\n',
101
101
            '--show-ids')
102
102
        self.ls_equals(
103
103
            '?        .bzrignore\n'
104
104
            'V        a                                         a-id\n'
105
 
            'V        subdir/                                   subdir-id\n', 
 
105
            'V        subdir/                                   subdir-id\n',
106
106
            '--show-ids --verbose')
107
107
        self.ls_equals('.bzrignore\0\0'
108
108
                       'a\0a-id\0'
226
226
 
227
227
    def test_kinds(self):
228
228
        self.build_tree(['subdir/'])
229
 
        self.ls_equals('.bzrignore\n' 
230
 
                       'a\n', 
 
229
        self.ls_equals('.bzrignore\n'
 
230
                       'a\n',
231
231
                       '--kind=file')
232
232
        self.ls_equals('subdir/\n',
233
233
                       '--kind=directory')