def METHOD_NAME(self):
    # define a named range
    result = self.sheet.define_named_range("A1:B2", "TestDeleteNamedRange")
    # from the result, get the named range we just created
    named_range_id = result["replies"][0]["addNamedRange"]["namedRange"][
        "namedRangeId"
    ]
    self.sheet.delete_named_range(named_range_id)
    # get the ranges from the metadata
    named_range_dict = self.sheet.spreadsheet.fetch_sheet_metadata(
        params={"fields": "namedRanges"}
    )
    # make sure that no ranges were returned
    self.assertEqual(named_range_dict, {})