b3j0f.utils.test.iterable module

class b3j0f.utils.test.iterable.EnsureIterableTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

Test ensure iterable function.

test_dict()[source]

test dict.

test_exclude()[source]

test exclude.

test_list()[source]

test list.

class b3j0f.utils.test.iterable.First(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase, b3j0f.utils.test.iterable._Set

Test the function first.

class b3j0f.utils.test.iterable.HashIterTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

Test the hashiter function.

test_dict()[source]

Test to hash a dict.

test_hashable()[source]

Test to hash an hashable object.

test_list()[source]

Test to hash a list.

test_set()[source]

Test to hash a set.

class b3j0f.utils.test.iterable.IsIterable(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

Test isiterable.

test_exclude()[source]

Test iterable and not allowed types.

test_excludes()[source]

Test iterable with a tuple of exclude types.

test_iterable()[source]

Test an iterable value.

test_not_iterable()[source]

Test not iterable element.

class b3j0f.utils.test.iterable.ItemAt(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase, b3j0f.utils.test.iterable._Set

Test the function itemat.

class b3j0f.utils.test.iterable.Last(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase, b3j0f.utils.test.iterable._Set

Test the function last.

class b3j0f.utils.test.iterable.SliceIt(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase, b3j0f.utils.test.iterable._Set

Test the function sliceit.

b3j0f.utils.test.iterable.random() → x in the interval [0, 1).