cubes_lite/model/utils.py
def assert_instance(obj, class_, label):
    """Raises ArgumentError when `obj` is not instance of `cls`"""

    if not isinstance(obj, class_):
        raise ModelError(
            '"{}" should be sublcass of "{}", provided: "{}"'
            .format(label, class_.__name__, type(obj).__name__)
        )
Raises ArgumentError when `obj` is not instance of `cls`
Raises ArgumentError when `obj` is not instance of `cls`
Raises ArgumentError when ` obj ` is not instance of ` cls `
def assert_instance(obj, class_, label):
    if not isinstance(obj, class_):
        raise ModelError(
            '"{}" should be sublcass of "{}", provided: "{}"'
            .format(label, class_.__name__, type(obj).__name__)
        )
def assert_instance ( obj , class_ , label ) : if not isinstance ( obj , class_ ) : raise ModelError ( '"{}" should be sublcass of "{}", provided: "{}"' . format ( label , class_ . __name__ , type ( obj ) . __name__ ) )
Raises ArgumentError when `obj` is not instance of `cls`
Raises ArgumentError when ` obj ` is not instance of ` cls `
"""Raises ArgumentError when `obj` is not instance of `cls`"""
obj
class_
label