def validate_reponse_with_serializer(serialized_obj, response):
    """
    Often times we wish to test a JSON response to make sure it matches
    expected serialization. This utility function takes in such a
    response and the serialization and returns true or false depending
    on if all fields match.
    """
    if (len(response) != len(serialized_obj)):
        return False
    for k in serialized_obj:
        if not k in response:
            return False
        if serialized_obj[k] != response[k]:
            return False
    return True