def METHOD_NAME(self, patched_boto, read_sam_file_patch, click_patch, template_valiadator):
    template_path = "path_to_template"
    read_sam_file_patch.return_value = {"a": "b"}
    get_translated_template_if_valid_mock = Mock()
    get_translated_template_if_valid_mock.get_translated_template_if_valid.side_effect = InvalidSamDocumentException
    template_valiadator.return_value = get_translated_template_if_valid_mock
    with self.assertRaises(InvalidSamTemplateException):
        do_cli(ctx=ctx_mock(profile="profile", region="region"), template=template_path, lint=False)