/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/blackbox/test_clean_tree.py

  • Committer: Martin von Gagern
  • Date: 2010-05-02 20:10:25 UTC
  • mto: This revision was merged to the branch mainline in revision 5203.
  • Revision ID: martin.vgagern@gmx.net-20100502201025-ssuldxi8i98desfh
Added blackbox tests for --directory option.

Added tests for the new --directory (-d) option to these commands: added,
annotate, bind, cat, clean-tree, deleted, export, ignore, ignored,
lookup-revision, ls, modified, nick, re-sign, unbind, unknowns.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2009 Canonical Ltd
 
1
# Copyright (C) 2005-2010 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
62
62
        self.failIfExists('name')
63
63
        self.failIfExists('name~')
64
64
        self.failIfExists('name.pyc')
 
65
 
 
66
    def test_clean_tree_directory(self):
 
67
        """Test --directory option"""
 
68
        tree = self.make_branch_and_tree('a')
 
69
        self.build_tree(['a/added', 'a/unknown', 'a/ignored'])
 
70
        tree.add('added')
 
71
        self.run_bzr('clean-tree -d a --unknown --ignored --force')
 
72
        self.failIfExists('a/unknown')
 
73
        self.failIfExists('a/ignored')
 
74
        self.failUnlessExists('a/added')