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 = {