~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_globbing.py

  • Committer: Vincent Ladeuil
  • Date: 2016-02-01 16:52:49 UTC
  • mto: (6614.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6615.
  • Revision ID: v.ladeuil+lp@free.fr-20160201165249-pjd165c0e37whpb4
Fix assertNotEquals being deprecated by using assertNotEqual.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006-2011 Canonical Ltd
2
2
# -*- coding: utf-8 -*-
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
26
26
    )
27
27
from bzrlib.tests import (
28
28
    TestCase,
29
 
    TestCaseInTempDir,
30
29
    )
31
30
 
32
31
 
38
37
                glob = glob_prefix + glob
39
38
            globster = Globster([glob])
40
39
            for name in positive:
41
 
                self.failUnless(globster.match(name), repr(
 
40
                self.assertTrue(globster.match(name), repr(
42
41
                    u'name "%s" does not match glob "%s" (re=%s)' %
43
42
                    (name, glob, globster._regex_patterns[0][0].pattern)))
44
43
            for name in negative:
45
 
                self.failIf(globster.match(name), repr(
 
44
                self.assertFalse(globster.match(name), repr(
46
45
                    u'name "%s" does match glob "%s" (re=%s)' %
47
46
                    (name, glob, globster._regex_patterns[0][0].pattern)))
48
47