'Register a mock response for GET on the CS user instance endpoint'

def register_get_user_response(self, user, subscribed_thread_ids=None, upvoted_ids=None):

    httpretty.register_uri(httpretty.GET, u'http://localhost:4567/api/v1/users/{id}'.format(id=user.id), body=json.dumps({u'id': str(user.id), u'subscribed_thread_ids': (subscribed_thread_ids or []), u'upvoted_ids': (upvoted_ids or [])}), status=200)
