~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_globbing.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

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