~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ignores.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-10 07:46:15 UTC
  • mfrom: (5844 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5845.
  • Revision ID: jelmer@samba.org-20110510074615-eptod049ndjxc4i7
Merge bzr.dev.

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)