def test_get_client_module__non_existent(): # Given client_name = 'strangeonehere' with pytest.raises(ImportError): # Then # When sut.get_client_module(client_name)
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