'Tests the behavior of patch when attempting to set fields with a select list of options to the empty string.
Also verifies the behaviour when setting to None.'

def test_patch_account_empty_string(self):

    self.client.login(username=self.user.username, password=TEST_PASSWORD)
    for field_name in ['gender', 'level_of_education', 'country']:
        response = self.send_patch(self.client, {field_name: ''})
        self.assertIsNone(response.data[field_name])
        response = self.send_patch(self.client, {field_name: ''})
        self.assertIsNone(response.data[field_name])
