/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Andrew Bennetts
  • Date: 2006-11-21 08:16:46 UTC
  • mfrom: (2145 +trunk)
  • mto: (2018.8.1 split smart)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20061121081646-ef6a49ad44bf2f9b
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 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
532
532
    def test_copy_basic_tree(self):
533
533
        self.build_tree(['source/', 'source/a', 'source/b/', 'source/b/c'])
534
534
        osutils.copy_tree('source', 'target')
535
 
        self.assertEqual(['a', 'b'], os.listdir('target'))
 
535
        self.assertEqual(['a', 'b'], sorted(os.listdir('target')))
536
536
        self.assertEqual(['c'], os.listdir('target/b'))
537
537
 
538
538
    def test_copy_tree_target_exists(self):
539
539
        self.build_tree(['source/', 'source/a', 'source/b/', 'source/b/c',
540
540
                         'target/'])
541
541
        osutils.copy_tree('source', 'target')
542
 
        self.assertEqual(['a', 'b'], os.listdir('target'))
 
542
        self.assertEqual(['a', 'b'], sorted(os.listdir('target')))
543
543
        self.assertEqual(['c'], os.listdir('target/b'))
544
544
 
545
545
    def test_copy_tree_symlinks(self):