~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_clean_tree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-18 04:55:00 UTC
  • mfrom: (5784.2.1 754188-apport-test)
  • Revision ID: pqm@pqm.ubuntu.com-20110418045500-ce6lkgyiq7f47q43
(mbp) Rewrite test_report_bug_legacy away from using doctest (see bug
 764188) (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2009, 2010, 2011 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
18
18
import errno
19
19
import os
20
20
import shutil
21
 
from StringIO import StringIO
22
21
import sys
23
22
import types
24
23
 
47
46
        BzrDir.create_standalone_workingtree('branch')
48
47
        os.symlink(os.path.realpath('no-die-please'), 'branch/die-please')
49
48
        os.mkdir('no-die-please')
50
 
        self.failUnlessExists('branch/die-please')
 
49
        self.assertPathExists('branch/die-please')
51
50
        os.mkdir('no-die-please/child')
52
51
 
53
52
        clean_tree('branch', unknown=True, no_prompt=True)
54
 
        self.failUnlessExists('no-die-please')
55
 
        self.failUnlessExists('no-die-please/child')
 
53
        self.assertPathExists('no-die-please')
 
54
        self.assertPathExists('no-die-please/child')
56
55
 
57
56
    def test_iter_deletable(self):
58
57
        """Files are selected for deletion appropriately"""