Example #1
0
def test_headers():
    token = "mytesttoken"
    handler = Handler(token)
    headers = handler._get_headers()

    assert "user-agent" in headers
    assert "accept" in headers
    assert "authorization" in headers
Example #2
0
def test_headers():
    token = 'mytesttoken'
    handler = Handler(token)
    headers = handler._get_headers()

    assert 'user-agent' in headers
    assert 'accept' in headers
    assert 'authorization' in headers