def METHOD_NAME(self):
    record = dict(
        get_chromo('contracts')['examples']['record'],
        contract_date='2022-01-01',
        vendor_postal_code=None,
        buyer_name='',
        trade_agreement='',
        agreement_type_code='Z',
        land_claims=None,
        indigenous_business='',
    )
    with assert_raises(ValidationError) as ve:
        self.lc.action.datastore_upsert(
            resource_id=self.resource_id,
            records=[record])
    err = ve.exception.error_dict['records'][0]
    expected = {
        'vendor_postal_code': ['This field must not be empty'],
        'buyer_name': ['This field must not be empty'],
        'trade_agreement': ['This field must not be empty'],
        'agreement_type_code': ['Discontinued as of 2022-01-01'],
        'land_claims': ['This field must not be empty'],
        'indigenous_business': ['This field must not be empty'],
    }
    assert isinstance(err, dict), err
    for k in set(err) | set(expected):
        assert_equal(err.get(k), expected.get(k), (k, err))