def test_get_filesystem_type(self): open_mocked = unittest.mock.mock_open(read_data=PROC_MOUNTS) with unittest.mock.patch('builtins.open', open_mocked): self.assertEqual('ext2', disk.get_filesystem_type(mount_point='/home'))
def test_get_filesystem_type_default_root(self): open_mocked = unittest.mock.mock_open(read_data=PROC_MOUNTS) with unittest.mock.patch('builtins.open', open_mocked): self.assertEqual('ext4', disk.get_filesystem_type())
def test_get_filesystem_type_default_root(self): open_mocked = unittest.mock.mock_open(read_data=PROC_MOUNTS) with unittest.mock.patch('builtins.open', open_mocked): self.assertEqual('ext4', disk.get_filesystem_type())
def test_get_filesystem_type(self): open_mocked = unittest.mock.mock_open(read_data=PROC_MOUNTS) with unittest.mock.patch('builtins.open', open_mocked): self.assertEqual('ext2', disk.get_filesystem_type(mount_point='/home'))
def test_get_filesystem_type(self): open_mocked = unittest.mock.mock_open(read_data=PROC_MOUNTS) with unittest.mock.patch("builtins.open", open_mocked): self.assertEqual("ext2", disk.get_filesystem_type(mount_point="/home"))