本文整理汇总了Python中toolium.driver_wrappers_pool.DriverWrappersPool._find_parent_directory方法的典型用法代码示例。如果您正苦于以下问题:Python DriverWrappersPool._find_parent_directory方法的具体用法?Python DriverWrappersPool._find_parent_directory怎么用?Python DriverWrappersPool._find_parent_directory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toolium.driver_wrappers_pool.DriverWrappersPool
的用法示例。
在下文中一共展示了DriverWrappersPool._find_parent_directory方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_find_parent_directory_absolute_recursively
# 需要导入模块: from toolium.driver_wrappers_pool import DriverWrappersPool [as 别名]
# 或者: from toolium.driver_wrappers_pool.DriverWrappersPool import _find_parent_directory [as 别名]
def test_find_parent_directory_absolute_recursively(self):
directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'unknown', 'conf')
filename = 'properties.cfg'
expected_config_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'conf')
assert_equal(expected_config_directory, DriverWrappersPool._find_parent_directory(directory, filename))
示例2: test_find_parent_directory_relative
# 需要导入模块: from toolium.driver_wrappers_pool import DriverWrappersPool [as 别名]
# 或者: from toolium.driver_wrappers_pool.DriverWrappersPool import _find_parent_directory [as 别名]
def test_find_parent_directory_relative(self):
directory = 'conf'
filename = 'properties.cfg'
expected_config_directory = os.path.join(os.getcwd(), 'conf')
assert_equal(expected_config_directory, DriverWrappersPool._find_parent_directory(directory, filename))
示例3: test_find_parent_directory_file_not_found
# 需要导入模块: from toolium.driver_wrappers_pool import DriverWrappersPool [as 别名]
# 或者: from toolium.driver_wrappers_pool.DriverWrappersPool import _find_parent_directory [as 别名]
def test_find_parent_directory_file_not_found(self):
directory = 'conf'
filename = 'unknown'
expected_config_directory = os.path.join(os.getcwd(), 'conf')
assert_equal(expected_config_directory, DriverWrappersPool._find_parent_directory(directory, filename))
示例4: test_find_parent_directory_absolute
# 需要导入模块: from toolium.driver_wrappers_pool import DriverWrappersPool [as 别名]
# 或者: from toolium.driver_wrappers_pool.DriverWrappersPool import _find_parent_directory [as 别名]
def test_find_parent_directory_absolute():
directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'conf')
filename = 'properties.cfg'
expected_config_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'conf')
assert expected_config_directory == DriverWrappersPool._find_parent_directory(directory, filename)