Example #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"))
Example #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"))
Example #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"))
Example #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'))
Example #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'))
Example #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'))