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