From f74e2b2d1eee054d976c82d2400fe549b84b6073 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Thu, 9 Jul 2015 08:05:33 +0200 Subject: [PATCH] Remove test files after running test --- test/test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test.py b/test/test.py index fd20c80..557690a 100644 --- a/test/test.py +++ b/test/test.py @@ -371,6 +371,8 @@ class WebAppTest(unittest.TestCase): self.assertIn('checkbox=on', r.text) self.assertIn('select=option_a', r.text) + os.unlink('data.csv') + def testValidateIncorrectData(self): data = { "form_name": 'validate', @@ -405,6 +407,8 @@ class WebAppTest(unittest.TestCase): self.assertIn('Invalid value for radio button', r.text) self.assertIn('Invalid value for dropdown', r.text) + os.unlink('data.txt') + def testValidateRefill(self): """ Ensure that field values are properly repopulated if there were any @@ -440,6 +444,8 @@ class WebAppTest(unittest.TestCase): self.assertIn('value="on"', r.text) self.assertIn('selected>Option B', r.text) + os.unlink('data.txt') + def testOutputEscaped(self): """Form with 'escaped' output should have HTML entities escaped""" data = {