def __and__(self, other):
        if not isinstance(other, Counter):
            return NotImplemented
        _min = min
        result = Counter()
        if len(self) < len(other):
            self, other = other, self
        for elem in filter(self.__contains__, other):
            newcount = _min(self[elem], other[elem])
            if newcount > 0:
                result[elem] = newcount
        return result
test that a non superuser cannot register when registration is admin only.
dataset/ETHPy150Open PythonCharmers/python-future/docs/3rd-party-py3k-compat-code/pandas_py3k.py/_Counter.__and__--crossover with--dataset/ETHPy150Open deis/deis/controller/api/tests/test_auth.py/AuthTest.test_auth_registration_admin_only_fails_if_not_admin