当前位置: 首页>>代码示例>>Python>>正文


Python FileAssertHelper.expect方法代码示例

本文整理汇总了Python中common.integration.FileAssertHelper.expect方法的典型用法代码示例。如果您正苦于以下问题:Python FileAssertHelper.expect方法的具体用法?Python FileAssertHelper.expect怎么用?Python FileAssertHelper.expect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在common.integration.FileAssertHelper的用法示例。


在下文中一共展示了FileAssertHelper.expect方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: assert_start_script_is_correct

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, 'start.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'start.sh')
         .any_line()
         .equals('$HOME/.bp/bin/rewrite "$HOME/nginx/conf"\n'))
开发者ID:KKraljic,项目名称:buildpack-php-lucid64,代码行数:10,代码来源:components.py

示例2: assert_contents_of_env_file

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_contents_of_env_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d', 'bp_env_vars.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.profile.d', 'bp_env_vars.sh')
         .any_line()
         .equals('export [email protected]\n'))
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:10,代码来源:components.py

示例3: assert_contents_of_procs_file

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_contents_of_procs_file(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.procs').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.procs')
         .line(0)
         .equals('php-app: $HOME/php/bin/php -c "$HOME/php/etc" app.php\n'))
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:10,代码来源:components.py

示例4: assert_start_script_is_correct

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_start_script_is_correct(self, build_dir):
     fah = FileAssertHelper()
     fah.expect().path(build_dir, '.profile.d/rewrite.sh').exists()
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, '.profile.d/rewrite.sh')
         .line(0)
             .contains('export PYTHONPATH=$HOME/.bp/lib'))  # noqa
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:10,代码来源:components.py

示例5: assert_scripts_are_installed

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_scripts_are_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, '.bp', 'bin', 'rewrite')
         .root(build_dir, '.bp', 'lib', 'build_pack_utils')
             .directory_count_equals(18)  # noqa
             .path('utils.py')
             .path('process.py')
         .exists())
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:11,代码来源:components.py

示例6: assert_app6_specifics

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_app6_specifics(self):
     fah = FileAssertHelper()
     (
         fah.expect()
         .root(self.build_dir)
         .path("public")  # noqa
         .path("public", "index.php")
         .path("public", "info.php")
         .path("vendor")
         .path("vendor", "lib.php")
         .path(".bp-config", "options.json")
         .exists()
     )
开发者ID:4Queen,项目名称:php-buildpack,代码行数:15,代码来源:test_compile.py

示例7: assert_files_installed

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'php')
             .path('etc', 'php.ini')  # noqa
             .path('bin', 'php')
             .path('bin', 'phar.phar')
         .root(build_dir, 'php', 'lib', 'php', 'extensions',
               'no-debug-non-zts-20100525')
             .path('bz2.so')
             .path('zlib.so')
             .path('curl.so')
             .path('mcrypt.so')
         .exists())
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:16,代码来源:components.py

示例8: assert_files_installed

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'php')
             .path('etc', 'php-fpm.conf')  # noqa
             .path('etc', 'php.ini')
             .path('sbin', 'php-fpm')
             .path('bin')
         .root(build_dir, 'php', 'lib', 'php', 'extensions',
               'no-debug-non-zts-20121212') # this timestamp is PHP5.5 specific
             .path('bz2.so')
             .path('zlib.so')
             .path('curl.so')
             .path('mcrypt.so')
         .exists())
开发者ID:agocover,项目名称:php-buildpack,代码行数:17,代码来源:components.py

示例9: assert_files_installed

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'appdynamics')  # noqa
             .path('daemon', 'appdynamics-daemon.x64')
             .path('agent', 'x64', 'appdynamics-20121212.so')
         .exists())
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'php', 'etc', 'php.ini')
         .any_line()
         .equals(
             '[email protected]{HOME}/appdynamics/agent/x64/appdynamics-20121212.so\n')
         .equals('[appdynamics]\n')
         .equals('appdynamics.license=JUNK_LICENSE\n')
         .equals('appdynamics.appname=app-name-1\n'))
开发者ID:Appdynamics,项目名称:php-buildpack,代码行数:18,代码来源:components.py

示例10: assert_files_installed

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_files_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .root(build_dir, 'codizy', 'client', 'application')
             .path('setup.php')  # noqa
             .path('class', 'Codizy_utils.php')
         .root(build_dir, 'php', 'lib', 'php', 'extensions',
               'no-debug-non-zts-20100525', reset=True)
             .path('xhprof.so')
             .path('ioncube.so')
             .path('codizy.so')
             .path('curl.so')
             .path('gettext.so')
             .path('mbstring.so')
             .path('openssl.so')
         .exists())
     tfah = TextFileAssertHelper()
     (tfah.expect()
         .on_file(build_dir, 'php', 'etc', 'php.ini')
         .any_line()
         .equals('auto_prepend_file = '
                 '@{HOME}/codizy/client/application/setup.php\n'))
开发者ID:gilliganmn,项目名称:cf-php-build-pack,代码行数:24,代码来源:components.py

示例11: assert_no_web_server_is_installed

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_no_web_server_is_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, 'httpd')
         .path(build_dir, 'nginx')
         .does_not_exist())
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:8,代码来源:components.py

示例12: assert_config_options

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_config_options(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, '.bp-config', 'options.json')
         .exists())
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:7,代码来源:components.py

示例13: assert_web_dir_exists

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_web_dir_exists(self, build_dir, web_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, web_dir)
         .exists())
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:7,代码来源:components.py

示例14: assert_no_web_dir

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def assert_no_web_dir(self, build_dir, webdir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, webdir)
         .does_not_exist())
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:7,代码来源:components.py

示例15: is_not_installed

# 需要导入模块: from common.integration import FileAssertHelper [as 别名]
# 或者: from common.integration.FileAssertHelper import expect [as 别名]
 def is_not_installed(self, build_dir):
     fah = FileAssertHelper()
     (fah.expect()
         .path(build_dir, 'newrelic')
         .does_not_exist())
开发者ID:isdressm,项目名称:php-buildpack-TSDB,代码行数:7,代码来源:components.py


注:本文中的common.integration.FileAssertHelper.expect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。