~jelmer/ubuntu/maverick/bzr/proposed-2.2.3

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remove.py

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-11-08 01:28:55 UTC
  • mfrom: (1.1.15 upstream) (3.1.14 edgy)
  • Revision ID: james.westby@ubuntu.com-20061108012855-faugrhqdxr3cuu9o
Tags: 0.11-1.1
* Non-maintainer upload.
* In test_osutils.py, sort what we get from os.listdir() before checking it;
  the OS can give back directory entries in whatever order it likes, and
  this shouldn't break the tests. Fixes intermittent test failures and
  FTBFS. (Closes: #395203)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from bzrlib.tests import TestCaseInTempDir
2
 
from bzrlib.branch import Branch
3
 
 
4
 
class TestRemove(TestCaseInTempDir):
5
 
    def test_remove_verbose(self):
6
 
        b = Branch.initialize(u'.')
7
 
        self.build_tree(['hello'])
8
 
        wt = b.working_tree() 
9
 
        wt.add(['hello'])
10
 
        wt.commit(message='add hello')
11
 
        eq = self.assertEquals
12
 
        wt.remove(['hello'], verbose=True)