~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_ignored.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-30 16:43:12 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060730164312-b025fd3ff0cee59e
rename  gpl.txt => COPYING.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2006 by 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
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
#
17
17
 
18
18
"""Tests of the 'bzr ignored' command."""
19
19
 
20
 
from bzrlib.tests import TestCaseWithTransport
21
 
 
22
 
 
23
 
class TestIgnored(TestCaseWithTransport):
24
 
 
 
20
from bzrlib.tests.blackbox import ExternalBase
 
21
 
 
22
 
 
23
class TestIgnored(ExternalBase):
 
24
        
25
25
    def test_ignored_added_file(self):
26
26
        """'bzr ignored' should not list versioned files."""
27
27
        # this test can go in favour of a more general ui test at some point
38
38
        out, err = self.run_bzr('ignored')
39
39
        self.assertEqual('', out)
40
40
        self.assertEqual('', err)
41
 
 
42
 
    def test_ignored_directory(self):
43
 
        """Test --directory option"""
44
 
        tree = self.make_branch_and_tree('a')
45
 
        self.build_tree_contents([('a/README', 'contents'),
46
 
                                  ('a/.bzrignore', 'README')])
47
 
        out, err = self.run_bzr(['ignored', '--directory=a'])
48
 
        self.assertStartsWith(out, 'README')