def METHOD_NAME(self):
    """The serializer should not be valid if the state is not of a valid value."""
    invalid_states = {
        "pending": '"pending" is not a valid choice.',
        "reedy": '"reedy" is not a valid choice.',
    }
    for state, message in invalid_states.items():
        invalid_data = {
            "key": f"{uuid4()}/video/{uuid4()}/0123456789",
            "state": state,
            "extraParameters": {"foo": "bar"},
        }
        serializer = UpdateStateSerializer(data=invalid_data)
        self.assertFalse(serializer.is_valid())
        self.assertEqual(serializer.errors["state"][0], message)