~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ignores.py

(vila) Revise legal option names to be less drastic. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    def test_create_if_missing(self):
77
77
        # $HOME should be set to '.'
78
78
        ignore_path = config.user_ignore_config_filename()
79
 
        self.failIfExists(ignore_path)
 
79
        self.assertPathDoesNotExist(ignore_path)
80
80
        user_ignores = ignores.get_user_ignores()
81
81
        self.assertEqual(set(ignores.USER_DEFAULTS), user_ignores)
82
82
 
83
 
        self.failUnlessExists(ignore_path)
 
83
        self.assertPathExists(ignore_path)
84
84
        f = open(ignore_path, 'rb')
85
85
        try:
86
86
            entries = ignores.parse_ignore_file(f)
149
149
class TestRuntimeIgnores(TestCase):
150
150
 
151
151
    def setUp(self):
152
 
        TestCase.setUp(self)
 
152
        super(TestRuntimeIgnores, self).setUp()
153
153
 
154
154
        # For the purposes of these tests, we must have no
155
155
        # runtime ignores