Remove test files after running test

pull/7/head
Ferry Boender 9 years ago
parent b823a183d9
commit f74e2b2d1e
  1. 6
      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 = {

Loading…
Cancel
Save