Commits

Ronny Pfannschmidt  committed a6454cb

extend the defined later error tests with checking for the additional metadata

  • Participants
  • Parent commits 7e43f8e

Comments (0)

Files changed (1)

File ropetest/contrib/finderrorstest.py

         result = finderrors.find_errors(self.project, self.mod)
         self.assertEquals(1, len(result))
         self.assertEquals(1, result[0].lineno)
+        self.assertEquals(2, result[0].args['line'])
+        self.assertEquals('var is defined later in line 2', result[0].error)
 
     def test_ignoring_builtins(self):
         self.mod.write('range(2)\n')