Example #1
0
 def test_delete(self):
     '''
     Test if it delete a devices to a BTRFS filesystem.
     '''
     with patch('salt.modules.btrfs._restripe', MagicMock(return_value={})):
         self.assertDictEqual(
             btrfs.delete('/mountpoint', '/dev/sda1', '/dev/sda2'), {})
Example #2
0
 def test_delete(self):
     """
     Test if it delete a devices to a BTRFS filesystem.
     """
     with patch("salt.modules.btrfs._restripe", MagicMock(return_value={})):
         self.assertDictEqual(
             btrfs.delete("/mountpoint", "/dev/sda1", "/dev/sda2"), {})
Example #3
0
 def test_delete(self):
     '''
     Test if it delete a devices to a BTRFS filesystem.
     '''
     self.assertDictEqual(btrfs.delete('/mountpoint', '/dev/sda1',
                                       '/dev/sda2'), {})
Example #4
0
 def test_delete(self):
     '''
     Test if it delete a devices to a BTRFS filesystem.
     '''
     self.assertDictEqual(
         btrfs.delete('/mountpoint', '/dev/sda1', '/dev/sda2'), {})