'Verify that patching the language_proficiencies field of the user
profile completely overwrites the previous value.'

def test_patch_language_proficiencies(self):

    client = self.login_client('client', 'user')
    for proficiencies in ([{'code': 'en'}, {'code': 'fr'}, {'code': 'es'}], [{'code': 'fr'}], [{'code': 'aa'}], []):
        response = self.send_patch(client, {'language_proficiencies': proficiencies})
        self.assertItemsEqual(response.data['language_proficiencies'], proficiencies)
