def test_is_dataset_filesystem(self): """ Test is_dataset with a valid filesystem/volume name """ self.assertTrue(zfs.is_dataset("zpool_name/dataset"))
def test_is_dataset_bookmark(self): """ Test is_dataset with a valid bookmark name """ self.assertFalse(zfs.is_dataset("zpool_name/dataset#backup"))
def test_is_dataset_snapshot(self): """ Test is_dataset with a valid snapshot name """ self.assertFalse(zfs.is_dataset("zpool_name/dataset@backup"))
def test_is_dataset_filesystem(self): ''' Test is_dataset with a valid filesystem/volume name ''' self.assertTrue(zfs.is_dataset('zpool_name/dataset'))
def test_is_dataset_bookmark(self): ''' Test is_dataset with a valid bookmark name ''' self.assertFalse(zfs.is_dataset('zpool_name/dataset#backup'))
def test_is_dataset_snapshot(self): ''' Test is_dataset with a valid snapshot name ''' self.assertFalse(zfs.is_dataset('zpool_name/dataset@backup'))