def test_exception_from_status_where_status_is_ok():
    assert utils.exception_from_status('0') is None
def test_exception_from_status_where_status_is_ok():
    assert utils.exception_from_status('0') is None
def test_exception_from_status_where_status_is_bad():
    exception = utils.exception_from_status('302 Camera is not available')
    assert exception == exceptions.CameraNotAvailable
def test_exception_from_status_where_status_is_bad():
    exception = utils.exception_from_status('302 Camera is not available')
    assert exception == exceptions.CameraNotAvailable