tests._utils module

Test utilities.

tests._utils.build_base(max_base)

Builds a base.

Parameters:max_base (int) – the maximum base
tests._utils.build_base_config()

Build base config.

tests._utils.build_digits_config()

Build an arbitrary digits config.

tests._utils.build_nat(base, max_len)

Build a well-formed nat strategy from base.

tests._utils.build_nat_with_base(max_base, max_len)

Builds a nat and its base. :param int max_base: the maximum base :param int max_len: the maximum number of digits in the nat

Returns:a strategy from which can be drawn a pair, a nat and its base
tests._utils.build_relation()

Build a sign value.

tests._utils.build_sign()

Build a sign value.

tests._utils.build_strip_config()

Build strip config.

Previous topic

tests package

Next topic

tests.test_approx_display module

This Page