~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ignores.py

  • Committer: Martin Pool
  • Date: 2011-04-15 07:01:22 UTC
  • mto: This revision was merged to the branch mainline in revision 5789.
  • Revision ID: mbp@sourcefrog.net-20110415070122-7x24skeadcm7wvut
Switch away from using failUnlessExists and failIfExists

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)