def test_gen_headers(): """test func.""" import buku exp_myheaders = { 'Accept-Encoding': 'gzip,deflate', 'User-Agent': buku.USER_AGENT, 'Accept': '*/*', 'Cookie': '', 'DNT': '1' } buku.gen_headers() assert buku.myproxy is None assert buku.myheaders == exp_myheaders
def test_gen_headers(): """test func.""" import buku exp_myheaders = { 'Accept-Encoding': 'gzip,deflate', 'User-Agent': buku.USER_AGENT, 'Accept': '*/*', 'Cookie': '', 'DNT': '1' } buku.gen_headers() assert buku.MYPROXY is None assert buku.MYHEADERS == exp_myheaders
def test_gen_headers(): """test func.""" import buku exp_myheaders = { "Accept-Encoding": "gzip,deflate", "User-Agent": buku.USER_AGENT, "Accept": "*/*", "Cookie": "", "DNT": "1", } buku.gen_headers() assert buku.MYPROXY is None assert buku.MYHEADERS == exp_myheaders