Exemplo n.º 1
0
 def test_mkfs(self):
     """
     Tests if a file system created on the specified device
     """
     mock = MagicMock()
     with patch.dict(extfs.__salt__, {"cmd.run": mock}):
         self.assertListEqual([], extfs.mkfs("/dev/sda1", "ext4"))
Exemplo n.º 2
0
 def test_mkfs(self):
     '''
     Tests if a file system created on the specified device
     '''
     mock = MagicMock()
     with patch.dict(extfs.__salt__, {'cmd.run': mock}):
         self.assertListEqual([], extfs.mkfs('/dev/sda1', 'ext4'))
Exemplo n.º 3
0
 def test_mkfs(self):
     '''
     Tests if a file system created on the specified device
     '''
     mock = MagicMock()
     with patch.dict(extfs.__salt__, {'cmd.run': mock}):
         self.assertListEqual([], extfs.mkfs('/dev/sda1', 'ext4'))