TestBoolHelpers

class tests.test_bool.TestBoolHelpers(methodName='runTest')[source]

Test the boolean check functions is_true, is_false, as well as empty()

__init__(methodName='runTest')

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

Methods

test_empty_combined()

Test empty() with empty iterables AND different representations of 0

test_empty_lst()

Test empty() with empty iterables

test_empty_vals()

Test empty() with empty values

test_empty_zero()

Test empty() with different representations of 0

test_emptyif_only_empty()

test_emptyif_only_value()

test_emptyif_with_is_not_empty()

test_isfalse_falsey()

Test is_false() with falsey values

test_isfalse_truthy()

Test is_false() with truthy values

test_istrue_falsey()

Test is_true() with falsey values

test_istrue_truthy()

Test is_true() with truthy values

test_notempty()

Test empty() with non-empty values

Attributes

Attributes