StrSubject¶
StrSubject.contains¶
StrSubject.contains(substr)
Assert that the subject contains the substring substr.
Method: StrSubject.contains
PARAMETERS ¶
StrSubject.ends_with¶
StrSubject.ends_with(substr)
Assert that the subject starts with the substring substr.
Method: StrSubject.ends_with
PARAMETERS ¶
StrSubject.equals¶
StrSubject.equals(other)
Assert that the subject string equals the other string.
Method: StrSubject.equals
PARAMETERS ¶
StrSubject.matches¶
StrSubject.matches(matcher)
Assert that the subject matches the predicate matcher.
Method: StrSubject.matches
PARAMETERS ¶
- matcher¶:
([
Matcher]) (seematchersstruct).
StrSubject.new¶
Creates a subject for asserting strings.
Method: StrSubject.new
PARAMETERS ¶
- actual¶:
(
str) the string to check against.- meta¶:
(
ExpectMeta) of call chain information.
- RETURNS ¶
StrSubjectobject.
StrSubject.not_contains¶
StrSubject.not_contains(substr)
Assert that the subject does not contain the substring substr.
Method: StrSubject.not_contains
PARAMETERS ¶
StrSubject.not_equals¶
StrSubject.not_equals(unexpected)
Assert that the string is not equal to unexpected.
Method: BoolSubject.not_equals
PARAMETERS ¶
StrSubject.split¶
StrSubject.split(sep)
Return a CollectionSubject for the actual string split by sep.
Method: StrSubject.split
PARAMETERS ¶
- sep¶:
undocumented
StrSubject.starts_with¶
StrSubject.starts_with(substr)
Assert that the subject starts with the substring substr.
Method: StrSubject.starts_with
PARAMETERS ¶