def METHOD_NAME(self, mock_os):
    expected_message = (
        "Could not determine the plugin type from the provided files:\n\n" "__init__.py, hello_world, cdk.out"
    )
    mock_os.listdir.return_value = ["__init__.py", "hello_world", "cdk.out"]
    with self.assertRaises(InvalidIaCPluginException) as ctx:
        IaCFactory.detect_project_type("/project/path/dir")
    self.assertEqual(str(ctx.exception), expected_message)