fluidsim.util.testing

Utilities for the unittests (fluidsim.util.testing)

This module extends the functionalities provide by the unittest standard library. It enforces matplotlib to use its Agg backend, thereby smoothly executing plotting tests without window pop-ups. It is also useful to execute this module to run FluidSim unittests, without going into the source directory for eg. when it is installed through pip.

Functions

run()

skip_if_no_fluidfft(func)

Classes

TestCase([methodName])

TestSimul([methodName])

TestSimulConserve([methodName])

A test case which makes it easy to test for energy and enstrophy conservation.

TestSimulConserveOutput([methodName])

A test case with methods to easily test for the output modules.

classproperty([method])

A combination of property and classmethod.