~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

Add a kind marker for subtrees

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
            finally:
158
158
                os.remove('socket')
159
159
 
 
160
    def test_kind_marker(self):
 
161
        self.assertEqual(osutils.kind_marker('file'), '')
 
162
        self.assertEqual(osutils.kind_marker('directory'), '/')
 
163
        self.assertEqual(osutils.kind_marker('symlink'), '@')
 
164
        self.assertEqual(osutils.kind_marker('tree-reference'), '>')
 
165
 
160
166
    def test_get_umask(self):
161
167
        if sys.platform == 'win32':
162
168
            # umask always returns '0', no way to set it