'Show an authorization can be created for a user.'

def test_authorize(self):

    self.instance.authorize('username', 'password', ['user', 'repo'])
    self.session.temporary_basic_auth.assert_called_once_with('username', 'password')
    self.post_called_with(url_for('authorizations'), data={'note': '', 'note_url': '', 'client_id': '', 'client_secret': '', 'scopes': ['user', 'repo']})
