@flake8ext
def check_asserttrue(logical_line, filename):
    if filename in 'neutron/tests/':
        if re.search(r"assertEqual\(\s*True,[^,]*(,[^,]*)?\)", logical_line):
            msg = ("N328: Use assertTrue(observed) instead of "
                   "assertEqual(True, observed)")
            yield (0, msg)
        if re.search(r"assertEqual\([^,]*,\s*True(,[^,]*)?\)", logical_line):
            msg = ("N328: Use assertTrue(observed) instead of "
                   "assertEqual(True, observed)")
            yield (0, msg)
dataset/ETHPy150Open openstack/neutron/neutron/hacking/checks.py/check_asserttrue/swapped operands of `in`