testing Package¶
testing
Package¶
array_extended_test
Module¶
-
class
contracts.testing.array_extended_test.
ArrayTest
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
contracts.testing.array_extended_test.
blend_function
(image1, image2, bug=False)[source]¶ Blends two RGB or RGBA images together.
param image1: The first image to blend. type image1: (rgb|rgba),array[HxWx*] param image2: The second image to blend. type image2: (rgb|rgba),array[HxWx*] param bug: Introduce a bug to check the contracts. type bug: bool return: The blended image. rtype: rgb,array[HxWx3]
friendliness_statistics
Module¶
test_class_contracts
Module¶
test_decorator
Module¶
test_docstring_parsing
Module¶
test_idioms
Module¶
test_multiple
Module¶
Other testing examples
test_new_contract
Module¶
test_particulars
Module¶
-
class
contracts.testing.test_particulars.
TestBindingVsRef
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
test_pickling
Module¶
test_simple
Module¶
-
contracts.testing.test_simple.
check_good_repr
(c)[source]¶ Checks that we can eval() the __repr__() value and we get an equivalent object.
utils
Module¶
Subpackages¶
- library Package
library
Packagearithmetic_tc
Modulearray_elements_tc
Modulearray_tc
Modulecomparison_tc
Modulecompositions_tc
Moduledicts_tc
Moduledummy_tc
Modulelists_tc
Modulemap_tc
Modulemiscellaneous_aliases_tc
Moduleseparate_context_tc
Moduleseq_tc
Modulesimple_values_tc
Modulestrings_tc
Moduletuple_tc
Moduletypes_tc
Modulevariables_tc
Module