示例#1
0
def test_exception_from_status_where_status_is_ok():
    assert utils.exception_from_status('0') is None
示例#2
0
def test_exception_from_status_where_status_is_ok():
    assert utils.exception_from_status('0') is None
示例#3
0
def test_exception_from_status_where_status_is_bad():
    exception = utils.exception_from_status('302 Camera is not available')
    assert exception == exceptions.CameraNotAvailable
示例#4
0
def test_exception_from_status_where_status_is_bad():
    exception = utils.exception_from_status('302 Camera is not available')
    assert exception == exceptions.CameraNotAvailable