'Pretend to take a snapshot.  Assign it the given name.'

def snapshot(self, name):

    self.get_path().child('.snapshots').setContent('\n'.join(([snapshot.name for snapshot in self._snapshots()] + [name])))
