'Verify that we emit one event per field when many fields change on the
user in one transaction.'

def test_change_many_fields(self):

    old_email = self.user.email
    old_is_staff = self.user.is_staff
    self.user.email = u'foo@bar.com'
    self.user.is_staff = True
    self.user.save()
    self.assert_user_setting_event_emitted(setting='email', old=old_email, new=self.user.email)
    self.assert_user_setting_event_emitted(setting='is_staff', old=old_is_staff, new=self.user.is_staff)
