Commit c146d574 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Various fixes based on pyflakes.

parent a37294da
......@@ -20,9 +20,8 @@ from datetime import date, timedelta
import unittest
import Filter
from TestFacilities import *
from TestFacilities import load_file, todolist_to_string, load_file_to_todolist
import Todo
import TodoList
class FilterTest(unittest.TestCase):
def test_filter3(self):
......@@ -200,7 +199,6 @@ class FilterTest(unittest.TestCase):
otf = Filter.OrdinalTagFilter('due:=2014-11-10')
filtered_todos = otf.filter(todos)
reference = load_file('data/FilterTest6-result.txt')
self.assertEquals(todolist_to_string(filtered_todos), "")
......
......@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from Config import config, _Config
from Config import config
import CommandTest
import ListCommand
import TestFacilities
......
......@@ -99,7 +99,7 @@ class RecurrenceTest(unittest.TestCase):
self.assertTrue(new_todo.has_tag(config().tag_due()))
self.assertEquals(new_todo.due_date(), new_due)
def test_startdate(self):
def test_startdate1(self):
""" Start date is before due date. """
self.todo.set_tag(config().tag_due(), date.today().isoformat())
yesterday = date.today() - timedelta(1)
......@@ -110,7 +110,7 @@ class RecurrenceTest(unittest.TestCase):
self.assertEquals(new_todo.start_date(), new_start)
def test_startdate(self):
def test_startdate2(self):
""" Strict recurrence. Start date is before due date. """
due = date.today() - timedelta(1)
self.todo.set_tag(config().tag_due(), date.today().isoformat())
......@@ -122,7 +122,7 @@ class RecurrenceTest(unittest.TestCase):
self.assertEquals(new_todo.start_date(), new_start)
def test_startdate2(self):
def test_startdate3(self):
""" Start date equals due date. """
self.todo.set_tag(config().tag_due(), date.today().isoformat())
self.todo.set_tag(config().tag_start(), date.today().isoformat())
......
......@@ -18,8 +18,6 @@ import unittest
from Config import config
import Sorter
import TodoList
import View
from TestFacilities import load_file, todolist_to_string, load_file_to_todolist
......
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