def test_is_snapshot_filesystem(self): """ Test is_snapshot with a valid filesystem name """ self.assertFalse(zfs.is_snapshot("zpool_name/dataset"))
def test_is_snapshot_bookmark(self): """ Test is_snapshot with a valid bookmark name """ self.assertFalse(zfs.is_snapshot("zpool_name/dataset#backup"))
def test_is_snapshot_snapshot(self): """ Test is_snapshot with a valid snapshot name """ self.assertTrue(zfs.is_snapshot("zpool_name/dataset@backup"))
def test_is_snapshot_filesystem(self): ''' Test is_snapshot with a valid filesystem name ''' self.assertFalse(zfs.is_snapshot('zpool_name/dataset'))
def test_is_snapshot_bookmark(self): ''' Test is_snapshot with a valid bookmark name ''' self.assertFalse(zfs.is_snapshot('zpool_name/dataset#backup'))
def test_is_snapshot_snapshot(self): ''' Test is_snapshot with a valid snapshot name ''' self.assertTrue(zfs.is_snapshot('zpool_name/dataset@backup'))