def METHOD_NAME(self):
    """
    All settings in deprecated_settings should raise a DeprecationWarning if they exist.
    WEBSERVER_PORTS raises an error if the iterable value passed does not have a tuple as its
    first element.
    """
    for setting in self.deprecated_settings:
        self.assertRaises(DeprecationWarning, check_errors, MockSettings(setting))
    # test check for WEBSERVER_PORTS having correct value
    self.assertRaises(
        DeprecationWarning, check_errors, MockSettings("WEBSERVER_PORTS", value=["not a tuple"])
    )