示例#1
0
 def test_is_dataset_filesystem(self):
     """
     Test is_dataset with a valid filesystem/volume name
     """
     self.assertTrue(zfs.is_dataset("zpool_name/dataset"))
示例#2
0
 def test_is_dataset_bookmark(self):
     """
     Test is_dataset with a valid bookmark name
     """
     self.assertFalse(zfs.is_dataset("zpool_name/dataset#backup"))
示例#3
0
 def test_is_dataset_snapshot(self):
     """
     Test is_dataset with a valid snapshot name
     """
     self.assertFalse(zfs.is_dataset("zpool_name/dataset@backup"))
示例#4
0
 def test_is_dataset_filesystem(self):
     '''
     Test is_dataset with a valid filesystem/volume name
     '''
     self.assertTrue(zfs.is_dataset('zpool_name/dataset'))
示例#5
0
 def test_is_dataset_bookmark(self):
     '''
     Test is_dataset with a valid bookmark name
     '''
     self.assertFalse(zfs.is_dataset('zpool_name/dataset#backup'))
示例#6
0
 def test_is_dataset_snapshot(self):
     '''
     Test is_dataset with a valid snapshot name
     '''
     self.assertFalse(zfs.is_dataset('zpool_name/dataset@backup'))