File size: 292 Bytes
58d33f0
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
"""Integration test for SerpAPI."""
from langchain.utilities import SerpAPIWrapper


def test_call() -> None:
    """Test that call gives the correct answer."""
    chain = SerpAPIWrapper()
    output = chain.run("What was Obama's first name?")
    assert output == "Barack Hussein Obama II"