本文整理汇总了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'))
示例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'))
示例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'))
示例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
示例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())
示例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()
)
示例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())
示例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())
示例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'))
示例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'))
示例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())
示例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())
示例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())
示例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())
示例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())