def device_tags(self, **params): """ Method for `List Device Tags <https://m2x.att.com/developer/documentation/v2/device#List-Device-Tags>`_ endpoint. :param params: Query parameters passed as keyword arguments. View M2X API Docs for listing of available parameters. :return: Device tags associated with your account :rtype: dict :raises: :class:`~requests.exceptions.HTTPError` if an error occurs when sending the HTTP request """ return Device.by_tags(self, **params)
def test_by_tags(self, **kwargs): out = Device.by_tags(self.client.api) assert out['foo'] == 1 assert out['bar'] == 1
def device_tags(self, **params): return Device.by_tags(self, **params)