

def test_disable_email(self):
    data = self._get_mock_data()
    response = self.request_client.post(response.url, data)
    self.assertTrue(response.context['success'])
    self.comm_pref.refresh_from_db()
    self.assertFalse(self.comm_pref.methods.email.is_set)

dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/accounts/tests/test_views.py CommunicationPreferenceSettingsTest.test_disable_email/VarMisuse@26/33 `self`->`response`