コード例 #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)
コード例 #2
0
ファイル: test_formatting.py プロジェクト: mkolar/pyblish-rpc
def test_error():
    """Formatting of exceptions works well"""
    error = Exception("My message")

    error = formatting.format_error(error)
    schema.validate(error, "error")
コード例 #3
0
ファイル: test_formatting.py プロジェクト: mkolar/pyblish-rpc
def test_error():
    """Formatting of exceptions works well"""
    error = Exception("My message")

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