def METHOD_NAME(self, mock_exists, mock_is_dir):
    mock_exists.return_value = False
    with self.assertRaises(ValueError):
        utils.validate_directory("any path")
    mock_exists.return_value = True
    mock_is_dir.return_value = False
    with self.assertRaises(ValueError):
        utils.validate_directory("any path")
    mock_is_dir.return_value = True
    utils.validate_directory("any path")