예제 #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