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([]))
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))
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))
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([]))