(logical_line)
Check for assertTrue(isinstance(a, b)) sentences

    M316
Check for assertTrue(isinstance(a, b)) sentences
Check for assertTrue ( isinstance ( a b )) sentences
def assert_true_isinstance(logical_line):
    """Check for assertTrue(isinstance(a, b)) sentences

    M316
    """
    if assert_true_isinstance_re.match(logical_line):
        yield (0, "M316: assertTrue(isinstance(a, b)) sentences not allowed")
def assert_true_isinstance ( logical_line ) : if assert_true_isinstance_re . match ( logical_line ) : yield ( 0 , "M316: assertTrue(isinstance(a, b)) sentences not allowed" )