'Show that github3.authorize can use an existing GitHub object.'

def test_authorize_with_github_argument(self):

    args = ('login', 'password', ['scope'], 'note', 'url.com', '', '')
    github = mock.Mock(spec_set=github3.GitHub)
    with mock.patch('github3.api.GitHub') as gh:
        github3.authorize(github=github, *args)
        gh().assert_not_called()
        github.authorize.assert_called_once_with(*args)
