I mean you can have

    mock = MagicMock()
    mock.some_attr.some_func.return_value = False

without having to first create mock.some_attr or mock.some_attr.some_func