Commit df4eb74d authored by Bram Schoenmakers's avatar Bram Schoenmakers

Move text files to data directory.

parent 9829b995
...@@ -4,6 +4,6 @@ from TestFacilities import load_file ...@@ -4,6 +4,6 @@ from TestFacilities import load_file
class TodoFileTest(unittest.TestCase): class TodoFileTest(unittest.TestCase):
def test_empty_file(self): def test_empty_file(self):
todofile = load_file('TodoFileTest1.txt') todofile = load_file('data/TodoFileTest1.txt')
self.assertEquals(len(todofile), 0) self.assertEquals(len(todofile), 0)
...@@ -9,7 +9,7 @@ import TodoList ...@@ -9,7 +9,7 @@ import TodoList
class TodoListTester(unittest.TestCase): class TodoListTester(unittest.TestCase):
def setUp(self): def setUp(self):
self.todofile = TodoFile.TodoFile('TodoListTest.txt') self.todofile = TodoFile.TodoFile('data/TodoListTest.txt')
lines = [line for line in self.todofile.read() \ lines = [line for line in self.todofile.read() \
if re.search(r'\S', line)] if re.search(r'\S', line)]
self.text = ''.join(lines) self.text = ''.join(lines)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment