示例#1
0
def test_get_client_module__non_existent():
    # Given
    client_name = 'strangeonehere'

    with pytest.raises(ImportError):  # Then
        # When
        sut.get_client_module(client_name)
示例#2
0
def test_get_client_module__non_existent():
    # Given
    client_name = 'strangeonehere'

    with pytest.raises(ImportError):  # Then
        # When
        sut.get_client_module(client_name)
示例#3
0
def test_get_client_module(p):
    # Given
    client_name = p['client']
    expected = p['expected']

    # When
    actual = sut.get_client_module(client_name)

    # Then
    assert expected == actual
示例#4
0
def test_get_client_module(p):
    # Given
    client_name = p['client']
    expected = p['expected']

    # When
    actual = sut.get_client_module(client_name)

    # Then
    assert expected == actual