'Verify that we emit an event when a single field changes on the user
profile.'

def test_change_one_field(self):

    self.profile.year_of_birth = 1900
    self.profile.save()
    self.assert_user_setting_event_emitted(setting='year_of_birth', old=None, new=self.profile.year_of_birth)
    with self.assertRaises(AttributeError):
        self.profile._changed_fields
