3
Tests for L{pyflakes.scripts.pyflakes}.
6
from twisted.python.filepath import FilePath
7
from twisted.trial.unittest import TestCase
9
from pyflakes.scripts.pyflakes import checkPath
11
class CheckTests(TestCase):
13
Tests for L{check} and L{checkPath} which check a file for flakes.
15
def test_missingTrailingNewline(self):
17
Source which doesn't end with a newline shouldn't cause any
18
exception to be raised nor an error indicator to be returned by
22
FilePath(fName).setContent("def foo():\n\tpass\n\t")
23
self.assertFalse(checkPath(fName))