# BoolSubject {.starlark-object} ## BoolSubject.equals {.starlark-signature} BoolSubject.equals([expected](#boolsubject_equals_expected)) Assert that the bool is equal to `expected`. Method: BoolSubject.equals {#boolsubject_equals_parameters} **PARAMETERS** [¶](#boolsubject_equals_parameters){.headerlink} :[expected[¶](#boolsubject_equals_expected){.headerlink}]{.span}: []{#boolsubject_equals_expected} ([`bool`]) the expected value. {.starlark-object} ## BoolSubject.new {.starlark-signature} BoolSubject.new([value](#boolsubject_new_value), [meta](#boolsubject_new_meta)) Creates a "BoolSubject" struct. Method: BoolSubject.new {#boolsubject_new_parameters} **PARAMETERS** [¶](#boolsubject_new_parameters){.headerlink} {.params-box} :[value[¶](#boolsubject_new_value){.headerlink}]{.span}: []{#boolsubject_new_value} ([`bool`]) the value to assert against. :[meta[¶](#boolsubject_new_meta){.headerlink}]{.span}: []{#boolsubject_new_meta} ([`ExpectMeta`]) the metadata about the call chain. {#boolsubject_new_returns} RETURNS [¶](#boolsubject_new_returns){.headerlink} : A [`BoolSubject`]. {.starlark-object} ## BoolSubject.not_equals {.starlark-signature} BoolSubject.not_equals([unexpected](#boolsubject_not_equals_unexpected)) Assert that the bool is not equal to `unexpected`. Method: BoolSubject.not_equals {#boolsubject_not_equals_parameters} **PARAMETERS** [¶](#boolsubject_not_equals_parameters){.headerlink} :[unexpected[¶](#boolsubject_not_equals_unexpected){.headerlink}]{.span}: []{#boolsubject_not_equals_unexpected} ([`bool`]) the value actual cannot equal. [`Action`]: https://bazel.build/rules/lib/Action [`ActionSubject`]: /api/action_subject [`bool`]: https://bazel.build/rules/lib/bool [`BoolSubject`]: /api/bool_subject [`CollectionSubject`]: /api/collection_subject [`depset`]: https://bazel.build/rules/lib/depset [`DepsetFileSubject`]: /api/depset_file_subject [`dict`]: https://bazel.build/rules/lib/dict [`DictSubject`]: /api/dict_subject [`Expect`]: /api/expect [`ExpectMeta`]: /api/expect_meta [`File`]: https://bazel.build/rules/lib/File [`FileSubject`]: /api/file_subject [`format_str`]: /api/expect_meta.html#expectmeta-format-str [`IntSubject`]: /api/int_subject [`Label`]: https://bazel.build/rules/lib/Label [`LabelSubject`]: /api/label_subject [`list`]: https://bazel.build/rules/lib/list [`Ordered`]: /api/ordered [`RunfilesSubject`]: /api/runfiles_subject [`str`]: https://bazel.build/rules/lib/string [`struct`]: https://bazel.build/rules/lib/builtins/struct [`StrSubject`]: /api/str_subject [`StructSubject`]: /api/struct_subject [`Target`]: https://bazel.build/rules/lib/Target [`TargetSubject`]: /api/target_subject [target-name]: https://bazel.build/concepts/labels#target-names [attr-label]: https://bazel.build/concepts/labels