def METHOD_NAME(self):
    with pytest.raises(TypeError,
                       match='Object of type object'
                             ' is not JSON serializable'):
        to_json_value(object())