def METHOD_NAME(self, patched_resource_summaries):
    self.resource_id = None
    patched_resource_summaries.side_effect = InvalidStackNameProvidedForRemoteInvoke("Invalid stack-name")
    with self.assertRaises(InvalidStackNameProvidedForRemoteInvoke):
        with self._get_remote_invoke_context():
            pass