def METHOD_NAME(self):
    bnf_codes = [
        "0204000C0AAAAAA",  # Acebut HCl_Cap 100mg
        "0204000C0BBAAAA",  # Sectral_Cap 100mg
        "0204000D0AAAAAA",  # Practolol_Inj 2mg/ml 5ml Amp
    ]
    factory = DataFactory()
    factory.create_prescribing_for_bnf_codes(bnf_codes)
    search = ["nm", "contains", "acebutolol"]
    with patched_global_matrixstore_from_data_factory(factory):
        results = advanced_search(AMP, search, ["unavailable"])
    self.assertFalse(results["too_many_results"])
    self.assertCountEqual(
        results["objs"],
        AMP.objects.filter(pk__in=[10347111000001100, 4814811000001108]),
    )
    querystring = results["analyse_url"].split("#")[1]
    params = parse_qs(querystring)
    self.assertEqual(
        params, {"numIds": ["0204000C0AA"], "denom": ["total_list_size"]}
    )