def METHOD_NAME(self):
    self.builder()
    # empty it, so there can be no body
    self.ilo.indices = []
    ao = Alias(name='alias')
    ao.add(self.ilo, warn_if_no_indices=True)
    self.assertRaises(NoIndices, ao.check_actions)