def METHOD_NAME(self, scm, dvc):
    dvc.install()
    hooks_with_commands = [
        ("post-checkout", "exec dvc git-hook post-checkout"),
        ("pre-commit", "exec dvc git-hook pre-commit"),
        ("pre-push", "exec dvc git-hook pre-push"),
    ]
    for fname, command in hooks_with_commands:
        hook_path = self._hook(fname)
        assert hook_path.is_file()
        assert command in hook_path.read_text()