[tools] Added pil to view image files.

This commit is contained in:
Andrew Hamilton 2017-03-28 22:53:03 +02:00
parent 6edcfbb746
commit e1742f6959
20 changed files with 198 additions and 4 deletions

View file

@ -212,6 +212,14 @@ class ToolsTestCase(unittest.TestCase):
def test_php5_syntax(self):
self._test_tool(tools.php5_syntax, [("root.php", tools.Status.ok)])
def test_pil(self):
for extension in tools.IMAGE_EXTENSIONS:
self._test_tool(tools.pil, [("circle." + extension,
tools.Status.normal)])
def test_pil_half(self):
self._test_tool(tools.pil_half, [("circle.png", tools.Status.normal)])
class LruCacheWithEvictionTestCase(unittest.TestCase):