def then_i_should_see_the_following_caller_id(step): caller_id_info = step.hashes[0] expected = [ {"Variable": "xivo-calleridname", "Value": caller_id_info["Name"]}, {"Variable": "xivo-calleridnum", "Value": caller_id_info["Number"]}, ] assert_that(cti_helper.get_sheet_infos(), has_items(*expected))
def then_i_should_see_the_following_caller_id(step): caller_id_info = step.hashes[0] expected = [ { 'Variable': 'xivo-calleridname', 'Value': caller_id_info['Name'] }, { 'Variable': 'xivo-calleridnum', 'Value': caller_id_info['Number'] }, ] assert_that(cti_helper.get_sheet_infos(), has_items(*expected))
def assertion(): assert_that(cti_helper.get_sheet_infos(), has_items(*expected))
def then_i_should_not_see_any_sheet(step): res = cti_helper.get_sheet_infos() assert_that(res, equal_to([]))
def then_i_see_a_sheet_with_the_following_values(step): res = cti_helper.get_sheet_infos() expected = step.hashes assert_that(res, has_items(*expected))
def assert_no_sheet(): res = cti_helper.get_sheet_infos() assert_that(res, equal_to([]))
def then_i_should_not_see_any_sheet(step): res = cti_helper.get_sheet_infos() assert_that(res, equal_to([]))
def then_i_see_a_sheet_with_the_following_values(step): res = cti_helper.get_sheet_infos() expected = step.hashes assert_that(res, has_items(*expected))