Exemple #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)
Exemple #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)
Exemple #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
Exemple #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