'Test behaviour of "Preferred Language" field.'

def test_preferred_language_field(self):

    self._test_dropdown_field(u'language_proficiencies', u'Preferred    Language', u'', [u'Pushto', u''])
    actual_events = self.wait_for_events(event_filter=self.settings_changed_event_filter, number_of_matches=2)
    self.assert_events_match([self.expected_settings_changed_event('language_proficiencies', [], [{'code': 'ps'}], table='student_languageproficiency'), self.expected_settings_changed_event('language_proficiencies', [{'code': 'ps'}], [], table='student_languageproficiency')], actual_events)
