PyDocs

Nav

Development Tools

patch

test.support

function
  • patch(test_instance, object_to_patch, attr_name, new_value)
Override object_to_patch.attr_name with new_value. Also add cleanup procedure to test_instance to restore object_to_patch for attr_name. The attr_name should be a valid attribute for object_to_patch.
0 Examples
No examples for test.support/patch.
See Also
No see-alsos for test.support/patch
0 Notes
No notes for patch