def test_oauth2(loop):
    github = GithubClient(
        client_id='b6281b6fe88fa4c313e6',
        client_secret='21ff23d9f1cad775daee6a38d230e1ee05b04f7c',
    )
    assert github

    assert 'github' in ClientRegistry.clients

    assert github.get_authorize_url()

    coro = github.get_access_token('000')

    with pytest.raises(web.HTTPBadRequest):
        loop.run_until_complete(coro)
dataset/ETHPy150Open klen/aioauth-client/tests.py/test_oauth2/original