# Path: pbxproj/pbxsections/PBXShellScriptBuildPhase.py
# class PBXShellScriptBuildPhase(PBXGenericBuildPhase):
# 
#     @classmethod
#     def create(cls, script, name=None, files=None, shell_path="/bin/sh", input_paths=None, output_paths=None,
#                show_in_log='0', run_install_build=0):
#         return cls().parse({
#             '_id': cls._generate_id(),
#             'isa': cls.__name__,
#             'name': name,
#             'files': files if files else [],
#             'buildActionMask': 0x7FFFFFFF,
#             'inputPaths': input_paths if input_paths else [],
#             'outputPaths': output_paths if output_paths else [],
#             'runOnlyForDeploymentPostprocessing': run_install_build,
#             'shellPath': shell_path,
#             'shellScript': script,
#             'showEnvVarsInLog': show_in_log
#         })
# 
#     def _get_comment(self):
#         return getattr(self, 'name', 'ShellScript')


import unittest
from pbxproj.pbxsections.PBXShellScriptBuildPhase import PBXShellScriptBuildPhase



class PBXShellScriptBuildPhaseTest(unittest.TestCase):
    def testGetComment(self):
        obj = PBXShellScriptBuildPhase()
        self.assertEqual(obj._get_comment(), u'ShellScript')

    def testGetCommentWithName(self):
        name = u'Run My Script Please'

# Path: pbxproj/pbxsections/PBXShellScriptBuildPhase.py
# class PBXShellScriptBuildPhase(PBXGenericBuildPhase):
# 
#     @classmethod
#     def create(cls, script, name=None, files=None, shell_path="/bin/sh", input_paths=None, output_paths=None,
#                show_in_log='0', run_install_build=0):
#         return cls().parse({
#             '_id': cls._generate_id(),
#             'isa': cls.__name__,
#             'name': name,
#             'files': files if files else [],
#             'buildActionMask': 0x7FFFFFFF,
#             'inputPaths': input_paths if input_paths else [],
#             'outputPaths': output_paths if output_paths else [],
#             'runOnlyForDeploymentPostprocessing': run_install_build,
#             'shellPath': shell_path,
#             'shellScript': script,
#             'showEnvVarsInLog': show_in_log
#         })
# 
#     def _get_comment(self):
#         return getattr(self, 'name', 'ShellScript')


# Path: tests/pbxsections/TestPBXShellScriptBuildPhase.py
import unittest
from pbxproj.pbxsections.PBXShellScriptBuildPhase import PBXShellScriptBuildPhase




class PBXShellScriptBuildPhaseTest(unittest.TestCase):
    def testGetComment(self):
        obj = PBXShellScriptBuildPhase()
        self.assertEqual(obj._get_comment(), u'ShellScript')

    def testGetCommentWithName(self):
        name = u'Run My Script Please'

        obj = PBXShellScriptBuildPhase.create(script=u'/dev/null', name=name)