예제 #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'))