

def setUp(self):
    super().setUp()
    setup_models(worker)
    self.url = reverse('orchestra:communication_preference_settings')
    (self.request_client, self.user) = self.authenticate_user()
    worker = self.workers[0]
    worker.user = self.user
    worker.save()
    self.comm_pref = CommunicationPreference.objects.filter(worker=worker).first()

dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/accounts/tests/test_views.py CommunicationPreferenceSettingsTest.setUp/VarMisuse@20/24 `self`->`worker`