Project Name: dataabc+weiboSpider
Language: Python
Statement Type: Assignment

Source Code:
def mock_request_get_content(url, headers):
    with open(os.path.join(TEST_DATA_DIR, URL_MAP_FILE)) as f:
        url_map = json.loads(f.read())
    resp_file = url_map[url]
    mock = Mock()
    with open(resp_file, "rb") as f:
        mock.content = f.read()
    return mock

mock_request_get_content(url='https://weibo.cn/album/166564740000001980768563?rl=1', headers={'User_Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36', 'Cookie': ''})

Selected Statement: resp_file = url_map[url]

Function Input:
url: 'https://weibo.cn/album/166564740000001980768563?rl=1'
headers: User_Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36

Variable Values Before Statement:
url_map: https://weibo.cn/1669879400/profile: tests/testdata/a4437630f3bdfa2757bae1595186ac063fe5ec25cf2f98116ece83cb.html
https://weibo.cn/1669879400/info: tests/testdata/ca5f2a555e8d62f728c66fa90afb2d54d19f8c898e164204a61bdf03.html
https://weibo.cn/1669879400/profile?page=1: tests/testdata/4957814af5a123b82e974b5537dea736dfb34e48d8835203a45d2e67.html
https://weibo.cn/mblog/picAll/J6k49kbTc?rl=1: tests/testdata/e97222acd5bc7d8d1bfbd3f352f8cad3e36fdd19e40b69e1c33fb3c3.html
https://weibo.cn/mblog/picAll/J5ZcSnCAg?rl=1: tests/testdata/63a98849ec82b2c87ec55bca03cbf5988f7eac233a23d86b4fdf5ffd.html
https://weibo.cn/1669879400/profile?page=2: tests/testdata/2f62165fa3ca1e85e0d398d385c377a068b76eb95765f7020ffffd3e.html
https://weibo.cn/1669879400/profile?page=3: tests/testdata/d486235d4a17dd0accb0f2cc77b3648abfa03580b9e0cdb61f1e618f.html
https://weibo.cn/mblog/picAll/J3xfm61AZ?rl=1: tests/testdata/76233b3f90394581aac6f19cfa5d674a610e8b442b1f83de7673ab49.html
https://weibo.cn/comment/J5cVGuUNq: tests/testdata/4d5ed0a3ebd0303cb45edd544dbc0ab5e86d43e103405f0c60515884.html
https://weibo.cn/1980768563/photo?tf=6_008: tests/testdata/e4d541ecb02253c14abc1d52605fc00d91279df9ac4c1465c85b91b3.html
https://weibo.cn/album/166564740000001980768563?rl=1: tests/testdata/b541fd1751117498b6d6f40d3321686ddf871651237c4ac854a5c3eb.html
url: 'https://weibo.cn/album/166564740000001980768563?rl=1'

Value After Statement Execution: 'tests/testdata/b541fd1751117498b6d6f40d3321686ddf871651237c4ac854a5c3eb.html'

Variable States During Runtime (line, value):
url: 1
'https://weibo.cn/album/166564740000001980768563?rl=1'
headers: 1
User_Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
f: 2
<_io.TextIOWrapper name='tests/testdata/url_map.json' mode='r' encoding='UTF-8'>
6
<_io.BufferedReader name='tests/testdata/b541fd1751117498b6d6f40d3321686ddf871651237c4ac854a5c3eb.html'>
url_map: 3
https://weibo.cn/1669879400/profile: tests/testdata/a4437630f3bdfa2757bae1595186ac063fe5ec25cf2f98116ece83cb.html
https://weibo.cn/1669879400/info: tests/testdata/ca5f2a555e8d62f728c66fa90afb2d54d19f8c898e164204a61bdf03.html
https://weibo.cn/1669879400/profile?page=1: tests/testdata/4957814af5a123b82e974b5537dea736dfb34e48d8835203a45d2e67.html
https://weibo.cn/mblog/picAll/J6k49kbTc?rl=1: tests/testdata/e97222acd5bc7d8d1bfbd3f352f8cad3e36fdd19e40b69e1c33fb3c3.html
https://weibo.cn/mblog/picAll/J5ZcSnCAg?rl=1: tests/testdata/63a98849ec82b2c87ec55bca03cbf5988f7eac233a23d86b4fdf5ffd.html
https://weibo.cn/1669879400/profile?page=2: tests/testdata/2f62165fa3ca1e85e0d398d385c377a068b76eb95765f7020ffffd3e.html
https://weibo.cn/1669879400/profile?page=3: tests/testdata/d486235d4a17dd0accb0f2cc77b3648abfa03580b9e0cdb61f1e618f.html
https://weibo.cn/mblog/picAll/J3xfm61AZ?rl=1: tests/testdata/76233b3f90394581aac6f19cfa5d674a610e8b442b1f83de7673ab49.html
https://weibo.cn/comment/J5cVGuUNq: tests/testdata/4d5ed0a3ebd0303cb45edd544dbc0ab5e86d43e103405f0c60515884.html
https://weibo.cn/1980768563/photo?tf=6_008: tests/testdata/e4d541ecb02253c14abc1d52605fc00d91279df9ac4c1465c85b91b3.html
https://weibo.cn/album/166564740000001980768563?rl=1: tests/testdata/b541fd1751117498b6d6f40d3321686ddf871651237c4ac854a5c3eb.html
resp_file: 4
'tests/testdata/b541fd1751117498b6d6f40d3321686ddf871651237c4ac854a5c3eb.html'
mock: 5
<Mock id='140426606241008'>