@responses.activate
    def test_remove_advertiser(self):
        self.setup()
        with open('tests/fixtures/permissions.xml') as f:
            fixture = f.read()
        responses.add(responses.GET,
                      'https://api.mediamath.com/api/v2.0/users/10000/permissions',
                      body=fixture,
                      content_type='application/xml',
                      match_querystring=True)

        p = self.t1.get('users', 10000, child='permissions')
        remove_id = 6
        assert remove_id in p.advertiser.keys(), 'Expected advertiser {} to be in access flags'.format(remove_id)

        p.remove('advertiser', 6)
        assert p.advertiser.keys() not in remove_id, 'advertiser {} should have been removed but is still there'\
            .format(remove_id)
dataset/ETHPy150Open MediaMath/t1-python/tests/test_permissions.py/TestPermissions.test_remove_advertiser/swapped operands of `not in`