Ejemplo n.º 1
0
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))
Ejemplo n.º 2
0
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))
Ejemplo n.º 3
0
 def assertion():
     assert_that(cti_helper.get_sheet_infos(), has_items(*expected))
Ejemplo n.º 4
0
def then_i_should_not_see_any_sheet(step):
    res = cti_helper.get_sheet_infos()
    assert_that(res, equal_to([]))
Ejemplo n.º 5
0
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))
Ejemplo n.º 6
0
 def assert_no_sheet():
     res = cti_helper.get_sheet_infos()
     assert_that(res, equal_to([]))
Ejemplo n.º 7
0
def then_i_should_not_see_any_sheet(step):
    res = cti_helper.get_sheet_infos()
    assert_that(res, equal_to([]))
Ejemplo n.º 8
0
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))