def check_code(self, code, linenb, col=None):

        self.assertIn(code, self.mapping,
                      msg=code % 'Code %s not found in checks')
        check = self.mapping[code]
        self.assertEqual(linenb, check['line'],
                         msg='Wrong line expected %s got %s' % (check['line'],
                                                                linenb))
        if col:
            self.assertEqual(col, check['col'],
                             msg='Wrong col expected %s got %s' % (check['col'],
                                                                   col))
dataset/ETHPy150Open nbessi/openerp-conventions/tests/base_test.py/ConventionCheckTest.check_code/swapped operands of `%`