def test_delete_snapshot_without_data(self):
    tmpl = {'HeatTemplateFormatVersion': '2012-12-12', 'Resources': {'R1': {'Type': 'GenericResourceType'}}}
    self.stack = stack.Stack(self.ctx, 'snapshot_stack', template.Template(tmpl))
    fake_snapshot = collections.namedtuple('Snapshot', ('data',))(None)
    self.assertIsNone(self.stack.delete_snapshot(fake_snapshot))
def test_delete_snapshot_without_data(self):
    tmpl = {'HeatTemplateFormatVersion': '2012-12-12', 'Resources': {'R1': {'Type': 'GenericResourceType'}}}
    self.stack = stack.Stack(self.ctx, 'snapshot_stack', template.Template(tmpl))
    fake_snapshot = collections.namedtuple('Snapshot', ('data',))(None)
    self.assertIsNone(self.stack.delete_snapshot(fake_snapshot))