def test_patch_invalid_language_proficiencies(self, patch_value, expected_error_message):
        """
        Verify we handle error cases when patching the language_proficiencies
        field.
        """
        expected_error_message = str(expected_error_message).replace('unicode', 'str')

        client = self.login_client("client", "user")
        response = self.send_patch(client, {"language_proficiencies": patch_value}, expected_status=400)
        assert response.data['field_errors']['language_proficiencies']['developer_message'] == \
               f"Value '{patch_value}' is not valid for field 'language_proficiencies': {expected_error_message}"