def METHOD_NAME(
    self,
    hosting_provider: ac_models.Hostingprovider,
    checker: domain_check.GreenDomainChecker,
    db,
):
    hosting_provider.save()
    small_ip_range = gc_models.GreencheckIp.objects.create(
        active=True,
        ip_start="127.0.1.2",
        ip_end="127.0.1.3",
        hostingprovider=hosting_provider,
    )
    small_ip_range.save()
    large_ip_range = gc_models.GreencheckIp.objects.create(
        active=True,
        ip_start="127.0.1.2",
        ip_end="127.0.1.200",
        hostingprovider=hosting_provider,
    )
    large_ip_range.save()
    ip_matches = gc_models.GreencheckIp.objects.filter(
        ip_end__gte="127.0.1.2", ip_start__lte="127.0.1.2",
    )
    res = checker.order_ip_range_by_size(ip_matches)
    assert res[0].ip_end == "127.0.1.3"