LabelSubject

LabelSubject.new

LabelSubject.new(label, meta)

Creates a new LabelSubject for asserting Label objects.

Method: LabelSubject.new

PARAMETERS

label:

(Label) the label to check against.

meta:

(ExpectMeta) the metadata about the call chain.

RETURNS

LabelSubject.

LabelSubject.equals

LabelSubject.equals(other)

Asserts the label is equal to other.

Method: LabelSubject.equals

PARAMETERS

other:

(Label | str) the expected value. If a str is passed, it will be converted to a Label using the Label function.

LabelSubject.is_in

LabelSubject.is_in(any_of)

Asserts that the label is any of the provided values.

PARAMETERS

any_of:

([collection] of (Label | str)) If strings are provided, they must be parsable by Label.