コード例 #1
0
ファイル: ionq_exceptions_test.py プロジェクト: wodaka/Cirq
def test_ionq_not_found_exception():
    ex = ionq.IonQNotFoundException(message='Where are you')
    assert str(ex) == 'Status code: 404, Message: \'Where are you\''
    assert ex.status_code == 404
コード例 #2
0
ファイル: ionq_client_test.py プロジェクト: wodaka/Cirq
def test_ionq_not_found_exception_str():
    ex = ionq.IonQNotFoundException('err')
    assert str(ex) == 'Status code: 404, Message: \'err\''