

def test_remove_device(self):
    airship = ua.Airship('key', 'secret')
    tag = ua.Tag(airship, 'high roller')
    with mock.patch.object(ua.Airship, '_request') as mock_request:
        response = requests.Response()
        response.status_code = 200
        mock_request.return_value = response
        tag.remove(ios_channels=['9c36e8c7-5a73-47c0-9716-99fd3d4197d11'], android_channels=['9c36e8c7-5a73-47c0-9716-99fd3d4197d12', '9c36e8c7-5a73-47c0-9716-99fd3d4197d15'])
        self.assertEqual(tag.data, {
            'ios_channels': {
                'remove': ['9c36e8c7-5a73-47c0-9716-99fd3d4197d11'],
            },
            'android_channels': {
                'remove': ['9c36e8c7-5a73-47c0-9716-99fd3d4197d12', '9c36e8c7-5a73-47c0-9716-99fd3d4197d15'],
            },
        })

dataset/ETHPy150Open urbanairship/python-library/tests/devices/test_tags.py TestTags.test_remove_device/original