

def get(self, **kwargs):
    "Returns the single object in this container whose attributes match\n        the given keyword arguments. An error will be raised if the arguments\n        provided don't return exactly one match.\n        "
    matches = self.filter(**kwargs)
    if (not matches):
        raise Exception('No matches found.')
    elif (len(kwargs) > 1):
        raise Exception('Multiple matches found.')
    else:
        return matches.pop()

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/test_data/utils.py TestDataContainer.get/VarMisuse@44/118 `matches`->`kwargs`