Ejemplo n.º 1
0
def test_error():
    """Formatting of exceptions works well"""
    error = Exception("My message")

    error = formatting.format_error(error)
    schema.validate(error, "error")

    # Test JSON-compatibility
    json.dumps(error)
Ejemplo n.º 2
0
def test_error():
    """Formatting of exceptions works well"""
    error = Exception("My message")

    error = formatting.format_error(error)
    schema.validate(error, "error")
Ejemplo n.º 3
0
def test_error():
    """Formatting of exceptions works well"""
    error = Exception("My message")

    error = formatting.format_error(error)
    schema.validate(error, "error")