Commit 2f8b1da0 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Use assertEqual instead of assertEquals

parent d543bed3
...@@ -272,15 +272,15 @@ class ListCommandTest(CommandTest): ...@@ -272,15 +272,15 @@ class ListCommandTest(CommandTest):
command = ListCommand(["-i", "1"], self.todolist, self.out, self.error) command = ListCommand(["-i", "1"], self.todolist, self.out, self.error)
command.execute() command.execute()
self.assertEquals(self.output, "| 1| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n") self.assertEqual(self.output, "| 1| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n")
self.assertEquals(self.errors, "") self.assertEqual(self.errors, "")
def test_list37(self): def test_list37(self):
command = ListCommand(["-i", "1,foo,3"], self.todolist, self.out, self.error) command = ListCommand(["-i", "1,foo,3"], self.todolist, self.out, self.error)
command.execute() command.execute()
self.assertEquals(self.output, "| 1| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n| 3| (C) Baz @Context1 +Project1 key:value\n") self.assertEqual(self.output, "| 1| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n| 3| (C) Baz @Context1 +Project1 key:value\n")
self.assertEquals(self.errors, "") self.assertEqual(self.errors, "")
def test_list38(self): def test_list38(self):
config("test/data/todolist-uid.conf") config("test/data/todolist-uid.conf")
...@@ -288,8 +288,8 @@ class ListCommandTest(CommandTest): ...@@ -288,8 +288,8 @@ class ListCommandTest(CommandTest):
command = ListCommand(["-i", "1,foo,z63"], self.todolist, self.out, self.error) command = ListCommand(["-i", "1,foo,z63"], self.todolist, self.out, self.error)
command.execute() command.execute()
self.assertEquals(self.output, "|t5c| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n|z63| (C) 13 + 29 = 42\n") self.assertEqual(self.output, "|t5c| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n|z63| (C) 13 + 29 = 42\n")
self.assertEquals(self.errors, "") self.assertEqual(self.errors, "")
def test_list39(self): def test_list39(self):
config("test/data/todolist-uid.conf") config("test/data/todolist-uid.conf")
...@@ -297,22 +297,22 @@ class ListCommandTest(CommandTest): ...@@ -297,22 +297,22 @@ class ListCommandTest(CommandTest):
command = ListCommand(["-i", "t5c,foo"], self.todolist, self.out, self.error) command = ListCommand(["-i", "t5c,foo"], self.todolist, self.out, self.error)
command.execute() command.execute()
self.assertEquals(self.output, "|t5c| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n") self.assertEqual(self.output, "|t5c| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n")
self.assertEquals(self.errors, "") self.assertEqual(self.errors, "")
def test_list40(self): def test_list40(self):
command = ListCommand(["(<C)"], self.todolist, self.out, self.error) command = ListCommand(["(<C)"], self.todolist, self.out, self.error)
command.execute() command.execute()
self.assertEquals(self.output, "| 2| (D) Bar @Context1 +Project2\n") self.assertEqual(self.output, "| 2| (D) Bar @Context1 +Project2\n")
self.assertEquals(self.errors, "") self.assertEqual(self.errors, "")
def test_list41(self): def test_list41(self):
command = ListCommand(["-z", "Zzz"], self.todolist, self.out, self.error) command = ListCommand(["-z", "Zzz"], self.todolist, self.out, self.error)
command.execute() command.execute()
self.assertEquals(self.output, "") self.assertEqual(self.output, "")
self.assertEquals(self.errors, "option -z not recognized\n") self.assertEqual(self.errors, "option -z not recognized\n")
def test_help(self): def test_help(self):
command = ListCommand(["help"], self.todolist, self.out, self.error) command = ListCommand(["help"], self.todolist, self.out, self.error)
......
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