@utils.check_messages('assert-on-tuple', 'assert-on-string-literal')
def visit_assert(self, node):
    'check whether assert is used on a tuple or string literal.'
    if ((node.fail is None) and isinstance(node.test, astroid.Tuple) and (len(node.test.elts) == 2)):
        self.add_message('assert-on-tuple', node=node)
    if (isinstance(node.test, astroid.Const) and isinstance(node.test.value, str)):
        if node.test.value:
            when = 'never'
        else:
            when = 'always'
        self.add_message('assert-on-string-literal', node=node, args=(when,))
check whether assert is used on a tuple or string literal.
@utils.check_messages('assert-on-tuple', 'assert-on-string-literal')
def visit_assert(self, node):
    
    if ((node.fail is None) and isinstance(node.test, astroid.Tuple) and (len(node.test.elts) == 2)):
        self.add_message('assert-on-tuple', node=node)
    if (isinstance(node.test, astroid.Const) and isinstance(node.test.value, str)):
        if node.test.value:
            when = 'never'
        else:
            when = 'always'
        self.add_message('assert-on-string-literal', node=node, args=(when,))