'Tests that a DoesNotExist exception can be caught by it\'s parent class DoesNotExist'

def test_does_not_exist_inherits_from_superclass(self):

    class Model1(Model, ):
        id = columns.UUID(primary_key=True, default=(lambda : uuid4()))
    class Model2(Model1, ):
        pass
    try:
        raise Model2.DoesNotExist
    except Model1.DoesNotExist:
        pass
    except Exception:
        assert False, 'Model2    exception    should    not    be    caught    by    Model1'
