def METHOD_NAME():
    """Check that ValueErrors are correctly raised."""
    with pytest.raises(ValueError, match="foo is not a valid characteristic"):
        SubscriberHandsetCharacteristic(
            "2016-01-01", "2016-01-07", "foo", method="last"
        )
    with pytest.raises(ValueError, match="foo is not a valid method"):
        SubscriberHandsetCharacteristic(
            "2016-01-01", "2016-01-07", "hnd_type", method="foo"
        )