def get(self, **kwargs):
        """Returns the single object in this container whose attributes match
        the given keyword arguments. An error will be raised if the arguments
        provided don't return exactly one match.
        """
        matches = self.filter(**kwargs)
        if not matches:
            raise Exception("No matches found.")
        elif len(matches) > 1:
            raise Exception("Multiple matches found.")
        else:
            return matches.pop()
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/test_data/utils.py/TestDataContainer.get/original