/usr/lib/python2.7/dist-packages/testtools/matchers/__init__.py is in python-testtools 1.8.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | # Copyright (c) 2008-2012 testtools developers. See LICENSE for details.
"""All the matchers.
Matchers, a way to express complex assertions outside the testcase.
Inspired by 'hamcrest'.
Matcher provides the abstract API that all matchers need to implement.
Bundled matchers are listed in __all__: a list can be obtained by running
$ python -c 'import testtools.matchers; print testtools.matchers.__all__'
"""
__all__ = [
'AfterPreprocessing',
'AllMatch',
'Annotate',
'AnyMatch',
'Contains',
'ContainsAll',
'ContainedByDict',
'ContainsDict',
'DirContains',
'DirExists',
'DocTestMatches',
'EndsWith',
'Equals',
'FileContains',
'FileExists',
'GreaterThan',
'HasLength',
'HasPermissions',
'Is',
'IsInstance',
'KeysEqual',
'LessThan',
'MatchesAll',
'MatchesAny',
'MatchesDict',
'MatchesException',
'MatchesListwise',
'MatchesPredicate',
'MatchesPredicateWithParams',
'MatchesRegex',
'MatchesSetwise',
'MatchesStructure',
'NotEquals',
'Not',
'PathExists',
'Raises',
'raises',
'SamePath',
'StartsWith',
'TarballContains',
]
from ._basic import (
Contains,
EndsWith,
Equals,
GreaterThan,
HasLength,
Is,
IsInstance,
LessThan,
MatchesRegex,
NotEquals,
StartsWith,
)
from ._datastructures import (
ContainsAll,
MatchesListwise,
MatchesSetwise,
MatchesStructure,
)
from ._dict import (
ContainedByDict,
ContainsDict,
KeysEqual,
MatchesDict,
)
from ._doctest import (
DocTestMatches,
)
from ._exception import (
MatchesException,
Raises,
raises,
)
from ._filesystem import (
DirContains,
DirExists,
FileContains,
FileExists,
HasPermissions,
PathExists,
SamePath,
TarballContains,
)
from ._higherorder import (
AfterPreprocessing,
AllMatch,
Annotate,
AnyMatch,
MatchesAll,
MatchesAny,
MatchesPredicate,
MatchesPredicateWithParams,
Not,
)
# XXX: These are not explicitly included in __all__. It's unclear how much of
# the public interface they really are.
from ._impl import (
Matcher,
Mismatch,
MismatchError,
)
|