# Path: mapbox/errors.py
# class ValidationError(ValueError):
# class InvalidCountryCodeError(ValidationError):
# class InvalidPlaceTypeError(ValidationError):
# class InvalidProfileError(ValidationError):
# class InvalidFeatureError(ValidationError):
# class HTTPError(ValidationError):
# class InvalidCoordError(ValidationError):
# class InputSizeError(ValidationError):
# class ImageSizeError(ValidationError):
# class TokenError(ValidationError):
# class InvalidParameterError(ValidationError):
# class InvalidFileError(ValidationError):
# class InvalidResourceTypeError(ValidationError):
# class InvalidPeriodError(ValidationError):
# class InvalidUsernameError(ValidationError):
# class InvalidId(ValidationError):
# class MapboxDeprecationWarning(UserWarning):
# class InvalidZoomError(ValidationError):
# class InvalidColumnError(ValidationError):
# class InvalidRowError(ValidationError):
# class InvalidFileFormatError(ValidationError):
# class InvalidFeatureFormatError(ValidationError):
# class InvalidMarkerNameError(ValidationError):
# class InvalidLabelError(ValidationError):
# class InvalidColorError(ValidationError):


import pytest
import responses
import mapbox
from mapbox import errors




def test_class_attrs():
    """Get expected class attr values"""
    serv = mapbox.Analytics()
    assert serv.api_name == 'analytics'
    assert serv.api_version == 'v1'


def test_resource_type_invalid():
    """'random' is not a valid resource type."""

# Path: mapbox/errors.py
# class ValidationError(ValueError):
# class InvalidCountryCodeError(ValidationError):
# class InvalidPlaceTypeError(ValidationError):
# class InvalidProfileError(ValidationError):
# class InvalidFeatureError(ValidationError):
# class HTTPError(ValidationError):
# class InvalidCoordError(ValidationError):
# class InputSizeError(ValidationError):
# class ImageSizeError(ValidationError):
# class TokenError(ValidationError):
# class InvalidParameterError(ValidationError):
# class InvalidFileError(ValidationError):
# class InvalidResourceTypeError(ValidationError):
# class InvalidPeriodError(ValidationError):
# class InvalidUsernameError(ValidationError):
# class InvalidId(ValidationError):
# class MapboxDeprecationWarning(UserWarning):
# class InvalidZoomError(ValidationError):
# class InvalidColumnError(ValidationError):
# class InvalidRowError(ValidationError):
# class InvalidFileFormatError(ValidationError):
# class InvalidFeatureFormatError(ValidationError):
# class InvalidMarkerNameError(ValidationError):
# class InvalidLabelError(ValidationError):
# class InvalidColorError(ValidationError):


# Path: tests/test_analytics.py
import pytest
import responses
import mapbox
from mapbox import errors





def test_class_attrs():
    """Get expected class attr values"""
    serv = mapbox.Analytics()
    assert serv.api_name == 'analytics'
    assert serv.api_version == 'v1'


def test_resource_type_invalid():
    """'random' is not a valid resource type."""

    with pytest.raises(errors.InvalidResourceTypeError):