~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ignores.py

  • Committer: Andrew Bennetts
  • Date: 2010-10-08 04:25:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5472.
  • Revision ID: andrew.bennetts@canonical.com-20101008042510-sg9vdhmnggilzxsk
Fix stray TAB in source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2011 Canonical Ltd
 
1
# Copyright (C) 2006-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
18
18
 
19
19
from cStringIO import StringIO
20
20
 
21
 
from bzrlib import (
22
 
    config,
23
 
    ignores,
24
 
    )
25
 
from bzrlib.tests import (
26
 
    TestCase,
27
 
    TestCaseInTempDir,
28
 
    TestCaseWithTransport,
29
 
    )
 
21
from bzrlib import config, errors, ignores
 
22
from bzrlib.tests import TestCase, TestCaseInTempDir, TestCaseWithTransport
30
23
 
31
24
 
32
25
class TestParseIgnoreFile(TestCase):
76
69
    def test_create_if_missing(self):
77
70
        # $HOME should be set to '.'
78
71
        ignore_path = config.user_ignore_config_filename()
79
 
        self.assertPathDoesNotExist(ignore_path)
 
72
        self.failIfExists(ignore_path)
80
73
        user_ignores = ignores.get_user_ignores()
81
74
        self.assertEqual(set(ignores.USER_DEFAULTS), user_ignores)
82
75
 
83
 
        self.assertPathExists(ignore_path)
 
76
        self.failUnlessExists(ignore_path)
84
77
        f = open(ignore_path, 'rb')
85
78
        try:
86
79
            entries = ignores.parse_ignore_file(f)