Exemple #1
0
 def test_is_snapshot_filesystem(self):
     """
     Test is_snapshot with a valid filesystem name
     """
     self.assertFalse(zfs.is_snapshot("zpool_name/dataset"))
Exemple #2
0
 def test_is_snapshot_bookmark(self):
     """
     Test is_snapshot with a valid bookmark name
     """
     self.assertFalse(zfs.is_snapshot("zpool_name/dataset#backup"))
Exemple #3
0
 def test_is_snapshot_snapshot(self):
     """
     Test is_snapshot with a valid snapshot name
     """
     self.assertTrue(zfs.is_snapshot("zpool_name/dataset@backup"))
Exemple #4
0
 def test_is_snapshot_filesystem(self):
     '''
     Test is_snapshot with a valid filesystem name
     '''
     self.assertFalse(zfs.is_snapshot('zpool_name/dataset'))
Exemple #5
0
 def test_is_snapshot_bookmark(self):
     '''
     Test is_snapshot with a valid bookmark name
     '''
     self.assertFalse(zfs.is_snapshot('zpool_name/dataset#backup'))
Exemple #6
0
 def test_is_snapshot_snapshot(self):
     '''
     Test is_snapshot with a valid snapshot name
     '''
     self.assertTrue(zfs.is_snapshot('zpool_name/dataset@backup'))