aboutsummaryrefslogtreecommitdiff
path: root/bleach/tests/tools.py
blob: 87f926cb7caaca101fe733605951cc56b9e1f5cc (plain)
1
2
3
4
5
6
7
def in_(l, a, msg=None):
    """Shorthand for 'assert a in l, "%r not in %r" % (a, l)
    """
    if not a in l:
        raise AssertionError(msg or "%r not in %r" % (a, l))