def METHOD_NAME(self):
    apt = AbstractPulseTemplate(identifier='my_apt')
    dummy = DummyPulseTemplate()
    with warnings.catch_warnings(record=True) as w:
        warnings.simplefilter("always")
        apt.unlink()
        self.assertFalse(w)
    apt.link_to(dummy)
    with self.assertWarns(UnlinkWarning):
        apt.unlink()
    self.assertIsNone(apt._linked_target)