DictSubject¶
DictSubject.contains_at_least¶
DictSubject.contains_at_least(at_least)
Assert the dict has at least the entries from at_least.
Method: DictSubject.contains_at_least
PARAMETERS ¶
DictSubject.contains_exactly¶
DictSubject.contains_exactly(expected)
Assert the dict has exactly the provided values.
Method: DictSubject.contains_exactly
PARAMETERS ¶
DictSubject.contains_none_of¶
DictSubject.contains_none_of(none_of)
Assert the dict contains none of none_of keys/values.
Method: DictSubject.contains_none_of
PARAMETERS ¶
DictSubject.keys¶
DictSubject.keys()
Returns a CollectionSubject for the dict’s keys.
Method: DictSubject.keys
- RETURNS ¶
CollectionSubjectof the keys.
DictSubject.new¶
DictSubject.new(actual, meta, container_name=”dict”, key_plural_name=”keys”)
Creates a new DictSubject.
Method: DictSubject.new
PARAMETERS ¶
- actual¶:
(
dict) the dict to assert against.- meta¶:
(
ExpectMeta) of call chain information.- container_name¶:
(default
"dict") (str) conceptual name of the dict.- key_plural_name¶:
(default
"keys") (str) the plural word for the keys of the dict.
- RETURNS ¶
New
DictSubjectstruct.