~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_globbing.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2015-07-31 01:04:41 UTC
  • mto: This revision was merged to the branch mainline in revision 6606.
  • Revision ID: a.starr.b@gmail.com-20150731010441-3domwjjtnjijxlr2
Use hexlify() from binascii directly as paramiko removed hexify().

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