def METHOD_NAME():
    """
    Test the OrganizationName method as used by OrganizationMatcher
    """
    pw = PropertyWeight('$.name', Decimal('0.8'), OrganizationName)
    assert pw in OrganizationMatcher.property_weights
    method = pw.method
    dimagi = {'name': 'Dimagi'}
    for resource, candidate, expected in [
        (dimagi, {'name': 'Dimagi'}, True),
        (dimagi, {'name': 'DiMaggi'}, True),
        (dimagi, {'name': 'Di Maggi'}, False),
        (dimagi, {'name': 'dimCGI'}, True),
    ]:
        yield check_method, method, resource, candidate, expected