String matchers¶
The String matcher is the one you’d be using most of the time to match string arguments.
More specialized matchers can distinguish between native Python 2/3 types for strings and binary data.
-
class
callee.strings.Unicode[source]¶ Matches a Unicode string.
On Python 2, this meansunicodeobjects exclusively.On Python 3, this meansstrobjects exclusively.
Patterns¶
These matchers check whether the string is of certain form.
Matching may be done based on prefix, suffix, or one of the various ways of specifying strings patterns, such as regular expressions.
-
class
callee.strings.Glob(pattern, case=None)[source]¶ Matches a string against a Unix shell wildcard pattern.
See the
fnmatchmodule for more details about those patterns.Parameters: - pattern – Pattern to match against
- case –
Case sensitivity setting. Possible options:
'system'orNone: case sensitvity is system-dependent (this is the default)True: matching is case-sensitiveFalse: matching is case-insensitive