test

Pytest and hypothesis examples.

Run using ‘pytest test.py’

test.add(x)[source]

Return x +1.

>>> add(2)
3
test.mystring(s)[source]

Return s.

test.square(x)[source]

Square x.

>>> square(2)
4
>>> square(-2)
4
test.test_add_h()None[source]

Test add.

test.test_add_p(value, result)[source]

Test add.

test.test_mystring_h()None[source]

Test string.

test.test_mystring_p(value, result)[source]

Test add.

test.test_square_h()None[source]

Test square.

test.test_square_p(value, result)[source]

Test add.