def METHOD_NAME(session):
    """Assert that model validates share series share quantity."""
    identifier = 'CP1234567'
    business = factory_business(identifier)
    share_class = ShareClass(
        name='Share Class 1',
        priority=1,
        max_share_flag=True,
        max_shares=1000,
        par_value_flag=True,
        par_value=0.852,
        currency='CAD',
        special_rights_flag=False,
        business_id=business.id
    )
    share_series_1 = ShareSeries(
        name='Share Series 1',
        priority=1,
        max_share_flag=True,
        max_shares=1500,
        special_rights_flag=False
    )
    share_class.series.append(share_series_1)
    with pytest.raises(BusinessException) as share_class_error:
        share_class.save()
    session.rollback()
    assert share_class_error
    assert share_class_error.value.status_code == HTTPStatus.BAD_REQUEST
    assert share_class_error.value.error == \
        f'The max share quantity of {share_series_1.name} must be <= that of share class quantity.'