{
  "id": "python-unittest-mock-examples-table",
  "kind": "table",
  "slug": "python-unittest-mock-examples",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/python-unittest-mock-examples/",
  "title": "MagicMock is treated as the usual default in these examples. (cheat table)",
  "columns": [
    "topic",
    "fact",
    "source_id"
  ],
  "rows": [
    {
      "topic": "C1",
      "fact": "MagicMock is treated as the usual default in these examples.",
      "source_id": "S1"
    },
    {
      "topic": "C2",
      "fact": "A patched class is replaced by a mock object.",
      "source_id": "S2"
    },
    {
      "topic": "C3",
      "fact": "Instances of a patched class are created by calling the mock.",
      "source_id": "S1"
    }
  ],
  "related_slugs": [
    "python-unittest",
    "python-mocking-monkeypatch-and-mock",
    "python-doctest"
  ],
  "license": "CC-BY-4.0",
  "as_of": "2026-11-26",
  "status": "draft"
}
