def METHOD_NAME(self):
    apt = AbstractPulseTemplate(identifier='my_apt')
    args = ([], {}, 'asd')
    kwargs = {'kw1': [], 'kw2': {}}
    forwarded_methods = ['_create_program']
    for method_name in forwarded_methods:
        method = getattr(apt, method_name)
        with self.assertRaisesRegex(RuntimeError, 'No linked target'):
            method(*args, **kwargs)
    linked = mock.MagicMock()
    apt.link_to(linked)
    for method_name in forwarded_methods:
        method = getattr(apt, method_name)
        mock_method = getattr(linked, method_name)
        method(*args, **kwargs)
        mock_method.assert_called_once_with(*args, **kwargs)