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
libraryPackagearithmetic_tcModulearray_elements_tcModulearray_tcModulecomparison_tcModulecompositions_tcModuledicts_tcModuledummy_tcModulelists_tcModulemap_tcModulemiscellaneous_aliases_tcModuleseparate_context_tcModuleseq_tcModulesimple_values_tcModulestrings_tcModuletuple_tcModuletypes_tcModulevariables_tcModule