示例#1
0
def then_the_group1_section_of_group2_does_not_contain_the_options(
        step, section, filename):
    option_names = [item['name'] for item in step.hashes]

    options = asterisk_helper.get_conf_options(filename, section, option_names)

    assert_that(options, equal_to([]))
示例#2
0
def then_the_group1_section_of_group2_contains(step, section, filename):
    option_names = [item['name'] for item in step.hashes]
    expected_options = [(item['name'], item['value']) for item in step.hashes]

    options = asterisk_helper.get_conf_options(filename, section, option_names)

    assert_that(options, contains(*expected_options))
示例#3
0
def then_the_group1_section_of_group2_contains(step, section, filename):
    option_names = [item['name'] for item in step.hashes]
    expected_options = [(item['name'], item['value']) for item in step.hashes]

    options = asterisk_helper.get_conf_options(filename, section, option_names)

    assert_that(options, contains(*expected_options))
示例#4
0
def then_the_exit_context_is_group1_for_queue_group2_in_asterisk(step, context_name, queue_name):
    options = asterisk_helper.get_conf_options('queues.conf', queue_name, ['context'])
    expected_option = [(u'context', context_name)]
    assert_that(options, contains(*expected_option))
示例#5
0
def then_the_group1_section_of_group2_does_not_contain_the_options(step, section, filename):
    option_names = [item['name'] for item in step.hashes]

    options = asterisk_helper.get_conf_options(filename, section, option_names)

    assert_that(options, equal_to([]))