def METHOD_NAME(self, session, app_spec, deployment):
    conf = Configuration()
    extension_hook_caller = ExtensionHookCaller(conf, session)
    obj = copy.deepcopy(deployment)
    extension_hook_caller.apply(obj, app_spec)
    assert obj == deployment
    session.post.assert_not_called()