def test_edit_put_customer(self):
        CustomerFactory.create()

        changed_data = self.complete_data.copy()

        unchanged_fields = ['email', 'address_2']
        for field in unchanged_fields:
            changed_data.pop(field)

        url = reverse('customer-detail', kwargs={'pk': 1})

        response = self.client.put(url, data=json.dumps(changed_data),
                                   content_type='application/json')

        self.assertEqual(response.status_code, status.HTTP_200_OK)

        for e in ['url', 'id', 'subscriptions']:
            response.data.pop(e)
        for field in response.data:
            if unchanged_fields not in field:
                self.assertEqual(response.data[field],
                                 self.complete_data[field])
dataset/ETHPy150Open PressLabs/silver/silver/tests/spec/test_customer.py/TestCustomerEndpoints.test_edit_put_customer/swapped operands of `not in`